Skip to content

Commit 2cb2422

Browse files
committed
fix tests
1 parent df7c7a4 commit 2cb2422

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/scala/Parser.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ object Parser {
9696
"insert" ~/ spaces ~
9797
"into" ~ spaces ~ ident ~ spaces ~
9898
// it would be nice to have column names be optional, but there is no
99-
// stable order of a dynamo schema. Some convetion could be introduced, but it
99+
// stable order of a dynamo schema. Some convention could be introduced, but it
100100
// might surprising. Optional feature?
101101
"(" ~/ space.rep ~ commaSeparated(ident) ~ space.rep ~ ")" ~ spaces ~
102102
"values" ~ spaces ~ "(" ~ space.rep ~ commaSeparated(value) ~ ")"

src/test/scala/EvalSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class EvalSpec
4343
client.shutdown()
4444
}
4545

46-
def run(query: String) = eval.run(Parser(query).get.value).get
46+
def run(query: String) = eval.run(Parser(query).right.get).get
4747

4848
def runQuery(query: String) = {
4949
val ResultSet(result) = run(query)

src/test/scala/ParserSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Ast._
66
class ParserSpec extends FlatSpec with Matchers {
77

88
def validate(query: String, expected: Query) = {
9-
val result = Parser(query).get.value
9+
val result = Parser(query).right.get
1010
expected should be(result)
1111
}
1212

0 commit comments

Comments
 (0)