Fix test cases for equality test builtins.

This commit is contained in:
Qi Xiao 2016-10-11 11:57:26 +08:00
parent 8a8d47afb7
commit e56e54307e

View File

@ -202,8 +202,8 @@ var evalTests = []struct {
{"* 353 661", strs("233333"), nomore},
{"/ 233333 353", strs("661"), nomore},
{"/ 1 0", strs("+Inf"), nomore},
// Equality
{"put ?(== 1.0 1) ?(==s 1.0 1) ?(eq 1 1) ?(eq [] []) ?(deepeq [] []) ?(deepeq [&] [&])",
// Equality test builtins.
{`put ?(== 1.0 1) ?(==s 1.0 1) ?(is 1 1) ?(is [] []) ?(eq [] []) ?(eq [&] [&])`,
[]Value{
Bool(true), Bool(false), Bool(true), Bool(false), Bool(true), Bool(true),
}, nomore},