Skip to content

Commit

Permalink
Tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cutting committed Apr 7, 2018
1 parent 61837dc commit 8c2a377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/SongTests/Parser/LiteralParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class LiteralParserTests: XCTestCase {
"'\"'".makes(.char("\""))
"'\\\\'".makes(.char("\\"))
"'\n'".makes(.char("\n"))
"'\r'".makes(.char("\r"))
"'\t'".makes(.char("\t"))
"'AB'".fails()
"'''".fails()
}
Expand All @@ -56,6 +58,8 @@ world\"
"\"Hi, I said\"".makes(.string("Hi, I said"))
"\"\\\"Hi,\\\" I said\"".makes(.string("\"Hi,\" I said"))
"\"\n\"".makes(.string("\n"))
"\"\r\"".makes(.string("\r"))
"\"\t\"".makes(.string("\t"))
"\"a\\\\backslash\"".makes(.string("a\\backslash"))
" \"hello world\" ".makes(.string("hello world"))
}
Expand Down

0 comments on commit 8c2a377

Please sign in to comment.