1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00
otto/bug_test.go
Robert Krimen 7982fa0fac Fix scanning \r, \b, \f, \v as \t
Copy and paste error of epic proportions?

This will fix #5
2012-10-17 18:57:48 -07:00

15 lines
209 B
Go

package otto
import (
"testing"
. "github.com/robertkrimen/terst"
)
func Test_issue5(t *testing.T) {
Terst(t)
test := runTest()
test(`'abc' === 'def'`, "false")
test(`'\t' === '\r'`, "false")
}