Re: Test should pass? SunOS
- Posted by jimcbrown (admin) Sep 18, 2017
- 1529 views
agrellum said...
agrellum@claudville:~$ dmesg | grep cpu[0,1] Sep 17 17:58:50 claudville unix: [ID 950921 kern.info] cpu0: x86 (chipid 0x0 AuthenticAMD 200F31 family 17 model 3 step 1 clock 2100 MHz) Sep 17 17:58:50 claudville unix: [ID 950921 kern.info] cpu0: AMD Athlon Dual-Core QL-64 Sep 17 17:58:50 claudville unix: [ID 950921 kern.info] cpu1: x86 (chipid 0x0 AuthenticAMD 200F31 family 17 model 3 step 1 clock 2100 MHz) Sep 17 17:58:50 claudville unix: [ID 950921 kern.info] cpu1: AMD Athlon Dual-Core QL-64 Sep 17 17:58:50 claudville unix: [ID 557947 kern.info] cpu1 initialization complete - online
Can you do a uname -a to confirm that the OS arch matches the CPU arch?
and a file `which eui` to confirm that the eui arch matches the OS arch?
agrellum said...
agrellum@claudville:~$ cat confused.ex include std/unittest.e include std/scinot.e include std/convert.e test_equal( "Avagadro #1", 6.022141 * power(10,23), scientific_to_atom("6.022141e23") ) ? atom_to_float32( (6.022141 * power(10,23))) ? atom_to_float32( (scientific_to_atom("6.022141e23"))) ? atom_to_float64( (6.022141 * power(10,23))) ? atom_to_float64( (scientific_to_atom("6.022141e23"))) agrellum@claudville:~$ eui confused.ex failed: Avagadro #1, expected: 6.022141e+23 but got: 6.022141e+23 {47,12,255,102} {47,12,255,102} {245,188,168,223,133,225,223,68} {244,188,168,223,133,225,223,68} agrellum@claudville:~$
Ok, try atom_to_float80().