Re: Why does my Exercism task fail?

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...

What does running "eui version" return for you?

>eui -v 
Euphoria Interpreter v4.1.0 development 
   64-bit Windows, Using System Memory 
   Revision Date: 2015-02-02 14:18:53, Id: 6300:57179171dbed 

jimcbrown said...

You have the expected and outcome backwards (see https://openeuphoria.org/docs/std_unittest.html#_6306_unittestingframework )

Reversing it makes no difference though.

jimcbrown said...

Also, what happens if you specify 9.223372037e+18 as the result instead of 9223372036854775808 ?

test_equal("grains on square 64",square(64),9.223372037e+18) 
test_equal("grains on square 64",9.223372037e+18,square(64)) 

interpreting t_grains.e: 
  failed: grains on square 64, expected: 9.22337203685478e+018 but got: 9.223372037e+018 
  failed: grains on square 64, expected: 9.223372037e+018 but got: 9.22337203685478e+018 

test_equal("grains on square 64",square(64),9.22337203685478e+018) 
test_equal("grains on square 64",9.22337203685478e+018,square(64)) 

interpreting t_grains.e: 
  failed: grains on square 64, expected: 9.22337203685478e+018 but got: 9.22337203685478e+018 
  failed: grains on square 64, expected: 9.22337203685478e+018 but got: 9.22337203685478e+018 
Curiouser and curiouser.

-Bruce

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu