Branch: Tag:

1997-04-28

1997-04-28 23:49:11 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

division and modulo changed

Rev: src/modules/Gmp/mpz_glue.c:1.16
Rev: src/operators.c:1.14
Rev: src/testsuite.in:1.40

1: - test_true([["$Id: testsuite.in,v 1.39 1997/04/23 01:59:41 hubbe Exp $"]]) + test_true([["$Id: testsuite.in,v 1.40 1997/04/28 23:48:42 hubbe Exp $"]])   test_any([[class foo { constant x=17; }; class bar { inherit foo; constant x=18; }; return bar()->x;]],18)   test_program([[inline string foo(string s){ while(s[0] == ' ' || s[0] == '\t') s = s[1..]; return(s); } string a() { return foo(" bar"); }]])   test_true([[lambda(function f) {return 1;}(object_program(this_object()));]])
587:   test_eq(13/3,4)   test_eq(14/3,4)   test_eq(15/3,5) + test_eq(-12/3,-4) + test_eq(-13/3,-5) + test_eq(-14/3,-5) + test_eq(-15/3,-5)   test_eval_error(return 15/0)   test_eq(12.0/3.0,4.0)   test_eq(14.0/4.0,3.5)
610:   test_eq(13%3,1)   test_eq(14%3,2)   test_eq(15%3,0) + test_eq(2%17,2) + test_eq(2%-17,-15) + test_eq(-2%17,15) + test_eq(-2%-17,-2)   test_eval_error(return 15 % 0)   test_eq(12.0 % 3.0,0.0)   test_eq(13.0 % 3.0,1.0)