Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Rosca committed May 8, 2014
1 parent eda6b1d commit cf7b58a
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions src/test/scala/org/anormcypher/Neo4jRESTTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ class Neo4jRESTSpec extends FlatSpec with Matchers with BeforeAndAfterEach {
override def beforeEach() {
Neo4jREST.setServer(scala.util.Properties.envOrElse("NEO4J_SERVER", "localhost"))

val q1 =
"""CREATE (n {anormcyphername:'n'}), (n2 {anormcyphername:'n2'}), (n3 {anormcyphername:'n3'}), n-[:test {name:'r'}]->n2, n2-[:test {name:'r2'}]->n3;""".stripMargin

Cypher(q1)()
// Cypher("""
// CREATE (n {anormcyphername:'n'}),
// (n2 {anormcyphername:'n2'}),
// (n3 {anormcyphername:'n3'}),
// n-[:test {name:'r'}]->n2,
// n2-[:test {name:'r2'}]->n3;
// """)()
Cypher("""
CREATE (n {anormcyphername:'n'}),
(n2 {anormcyphername:'n2'}),
(n3 {anormcyphername:'n3'}),
n-[:test {name:'r'}]->n2,
n2-[:test {name:'r2'}]->n3;
""")()
Cypher("""
CREATE (n5 {anormcyphername:'n5'}),
(n6 {anormcyphername:'n6'}),
Expand Down Expand Up @@ -103,11 +99,8 @@ class Neo4jRESTSpec extends FlatSpec with Matchers with BeforeAndAfterEach {

it should "be able to retrieve non ascii characters" in {
val (nonAsciiCharacters, surrogatePair) = ("日本語", "\uD83D\uDE04")
val query: String = """
CREATE (n {anormcyphername:'non-ascii-character', name:'%s', surrogate:'%s'});
""".format(nonAsciiCharacters, surrogatePair)
println(query)
Cypher(query)()
Cypher("""CREATE (n {anormcyphername:'non-ascii-character', name:'%s', surrogate:'%s'});"""
.format(nonAsciiCharacters, surrogatePair))()
val results = Cypher(
"""
START n=node(*)
Expand Down

0 comments on commit cf7b58a

Please sign in to comment.