Skip to content

Commit

Permalink
silly test for tokens.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Oct 30, 2018
1 parent 329e0c2 commit 334a8ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ end


@testset "isexactly" begin

steps, b, λ = J.isexactly("<!--")
@test steps == length("<!--") - 1 # minus start char
@test b == false
Expand All @@ -40,8 +39,9 @@ end
@test λ("\$a") == false
@test λ("a\$") == false

steps, b, λ = J.isexactly("\$", ['\$'], false)
@test steps == 1
rs = "\$"
steps, b, λ = J.isexactly(rs, ['\$'], false)
@test steps == nextind(rs, prevind(rs, lastindex(rs)))
@test b == true
@test λ("\$\$") == false
@test λ("\$a") == true
Expand Down

0 comments on commit 334a8ad

Please sign in to comment.