Skip to content

Commit

Permalink
fix bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Haoyi committed Mar 11, 2015
1 parent 680c1ee commit deafdc7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions repl/src/test/scala/ammonite/repl/AdvancedTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,16 @@ object AdvancedTests extends TestSuite{
res2: scala.Seq[String] = Vector("val x = 1", "x")
""")
}
'pprint{
'customPPrint{
check.session("""
@ class C
defined class C
@ implicit def pprint = ammonite.pprint.PPrinter((t, c) => Iterator("INSTANCE OF CLASS C"))
@ implicit def pprint = ammonite.pprint.PPrinter[C]((t, c) => Iterator("INSTANCE OF CLASS C"))
defined function pprint
@ new C
INSTANCE OF CLASS C
res2: cmd0.C = INSTANCE OF CLASS C
""")
}

Expand Down

0 comments on commit deafdc7

Please sign in to comment.