mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.11.0t10.4
This commit is contained in:
@@ -385,10 +385,10 @@ define test_config()
|
||||
'516: config("pow2") == 40');
|
||||
vrfy(config("redc2") == 50,
|
||||
'517: config("redc2") == 50');
|
||||
vrfy(config("tilde") == 1,
|
||||
'518: config("tilde") == 1');
|
||||
vrfy(config("tab") == 1,
|
||||
'519: config("tab") == 1');
|
||||
vrfy(config("tilde") == "on",
|
||||
'518: config("tilde") == "on"');
|
||||
vrfy(config("tab") == "on",
|
||||
'519: config("tab") == "on"');
|
||||
vrfy(config("quomod") == 0,
|
||||
'520: config("quomod") == 0');
|
||||
vrfy(config("quo") == 2,
|
||||
@@ -407,10 +407,10 @@ define test_config()
|
||||
'527: config("outround") == 2');
|
||||
vrfy(config("round") == 24,
|
||||
'528: config("round") == 24');
|
||||
vrfy(config("leadzero") == 0,
|
||||
'529: config("leadzero") == 0');
|
||||
vrfy(config("fullzero") == 0,
|
||||
'530: config("fullzero") == 0');
|
||||
vrfy(config("leadzero") == "off",
|
||||
'529: config("leadzero") == "off"');
|
||||
vrfy(config("fullzero") == "off",
|
||||
'530: config("fullzero") == "off"');
|
||||
vrfy(config("maxscan") == 20,
|
||||
'531: config("maxscan") == 20');
|
||||
vrfy(config("prompt") == "> ",
|
||||
@@ -426,10 +426,10 @@ define test_config()
|
||||
vrfy(config("quo", 0) == 2, '536: config("quo", 0) == 2');
|
||||
vrfy(config("outround", 24) == 2,
|
||||
'537: config("outround", 24) == 2');
|
||||
vrfy(config("leadzero", "y") == 0,
|
||||
'538: config("leadzero", "y") == 0');
|
||||
vrfy(config("fullzero", 1) == 0,
|
||||
'539: config("fullzero", 1) == 0');
|
||||
vrfy(config("leadzero","y") == "off",
|
||||
'538: config("leadzero","y") == "off"');
|
||||
vrfy(config("fullzero", 1) == "off",
|
||||
'539: config("fullzero", 1) == "off"');
|
||||
vrfy(config("prompt", "; ") == "> ",
|
||||
'540: config("prompt", "; ") == "> "');
|
||||
vrfy(config("more", ";; ") == ">> ",
|
||||
@@ -441,14 +441,14 @@ define test_config()
|
||||
'543: config("all",callcfg) == newcfg');
|
||||
vrfy(config("display",2) == 20,
|
||||
'544: config("display",2) == 20');
|
||||
vrfy(config("fullzero",1) == 0,
|
||||
'545: config("fullzero",1) == 0');
|
||||
vrfy(config("fullzero",1) == "off",
|
||||
'545: config("fullzero",1) == "off"');
|
||||
vrfy(strprintf("%d %d %d", 0, 1, 2) == ".00 1.00 2.00",
|
||||
'546: strprintf("%d %d %d", 0, 1, 2) == ".00 1.00 2.00"');
|
||||
vrfy(config("display",20) == 2,
|
||||
'547: config("display",20) == 2');
|
||||
vrfy(config("fullzero",0) == 1,
|
||||
'548: config("fullzero",0) == 1');
|
||||
vrfy(config("fullzero",0) == "on",
|
||||
'548: config("fullzero",0) == "on"');
|
||||
vrfy(strprintf("%d %d %d", 0, 1, 2) == "0 1 2",
|
||||
'549: strprintf("%d %d %d", 0, 1, 2) == "0 1 2"');
|
||||
|
||||
@@ -1582,12 +1582,12 @@ define test_mode()
|
||||
|
||||
tmp = config("mode", "int");
|
||||
print '1604: tmp = config("mode", "int")';
|
||||
vrfy(tmp == "frac", '1605: tmp == "frac"');
|
||||
vrfy(tmp == "fraction", '1605: tmp == "fraction"');
|
||||
vrfy(base() == -10, '1606: base() == -10');
|
||||
|
||||
tmp = config("mode", "real");
|
||||
print '1607: tmp = config("mode", "real")';
|
||||
vrfy(tmp == "int", '1608: tmp == "int"');
|
||||
vrfy(tmp == "integer", '1608: tmp == "integer"');
|
||||
vrfy(base() == 10, '1609: base() == 10');
|
||||
|
||||
tmp = config("mode", "exp");
|
||||
@@ -1597,7 +1597,7 @@ define test_mode()
|
||||
|
||||
tmp = config("mode", "hex");
|
||||
print '1613: tmp = config("mode", "hex")';
|
||||
vrfy(tmp == "exp", '1614: tmp == "exp"');
|
||||
vrfy(tmp == "scientific", '1614: tmp == "scientific"');
|
||||
vrfy(base() == 16, '1615: base() == 16');
|
||||
|
||||
tmp = config("mode", "oct");
|
||||
@@ -1616,11 +1616,13 @@ define test_mode()
|
||||
|
||||
tmp = base(1/3);
|
||||
print '1624: tmp = base(1/3)';
|
||||
vrfy(config("mode") == "frac", '1625: config("mode") == "frac"');
|
||||
vrfy(config("mode") == "fraction",
|
||||
'1625: config("mode") == "fraction"');
|
||||
|
||||
tmp = base(-10);
|
||||
print '1626: tmp = base(-10)';
|
||||
vrfy(config("mode") == "int", '1627: config("mode") == "int"');
|
||||
vrfy(config("mode") == "integer",
|
||||
'1627: config("mode") == "integer"');
|
||||
|
||||
tmp = base(10);
|
||||
print '1628: tmp = base(10)';
|
||||
@@ -1628,7 +1630,8 @@ define test_mode()
|
||||
|
||||
tmp = base(1e20);
|
||||
print '1630: tmp = base(1e20)';
|
||||
vrfy(config("mode") == "exp", '1631: config("mode") == "exp"');
|
||||
vrfy(config("mode") == "scientific",
|
||||
'1631: config("mode") == "scientific"');
|
||||
|
||||
tmp = base(16);
|
||||
print '1632: tmp = base(16)';
|
||||
@@ -2705,11 +2708,11 @@ define test_matobj()
|
||||
B[0,0] = res(2);
|
||||
print '3106: B[0,0] = res(2)';
|
||||
B[0,1] = res(3);
|
||||
print '3107: B[0,1] = res(2)';
|
||||
print '3107: B[0,1] = res(3)';
|
||||
B[1,0] = res(5);
|
||||
print '3108: B[1,0] = res(2)';
|
||||
print '3108: B[1,0] = res(5)';
|
||||
B[1,1] = res(7);
|
||||
print '3109: B[1,1] = res(2)';
|
||||
print '3109: B[1,1] = res(7)';
|
||||
print '3110: md = 0';
|
||||
md = 0;
|
||||
vrfy(det(B) == res(-1), '3111: det(B) == res(-1)');
|
||||
|
Reference in New Issue
Block a user