[gnome-calculator/gnome-3-32] Fixed #116 by removing test-cases for removed functionality (leading 00 octal)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/gnome-3-32] Fixed #116 by removing test-cases for removed functionality (leading 00 octal)
- Date: Wed, 26 Jun 2019 05:15:09 +0000 (UTC)
commit bb123532a250855d538b8a73069b04425dc55a81
Author: Robert Roth <robert roth off gmail com>
Date: Tue May 28 07:56:26 2019 +0300
Fixed #116 by removing test-cases for removed functionality (leading 00 octal)
tests/test-equation.vala | 5 ++---
tests/test-serializer.vala | 2 --
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/tests/test-equation.vala b/tests/test-equation.vala
index e1fa390d..5ed011f9 100644
--- a/tests/test-equation.vala
+++ b/tests/test-equation.vala
@@ -234,8 +234,8 @@ private void test_equations ()
test ("0b5", "", ErrorCode.MP); test ("0B5", "", ErrorCode.MP); test ("0o5", "5", 0); test ("0O5", "5",
0); test ("005", "5", 0); test ("5", "5", 0); test ("0x5", "5", 0); test ("0X5", "5", 0);
test ("0b6", "", ErrorCode.MP); test ("0B6", "", ErrorCode.MP); test ("0o6", "6", 0); test ("0O6", "6",
0); test ("006", "6", 0); test ("6", "6", 0); test ("0x6", "6", 0); test ("0X6", "6", 0);
test ("0b7", "", ErrorCode.MP); test ("0B7", "", ErrorCode.MP); test ("0o7", "7", 0); test ("0O7", "7",
0); test ("007", "7", 0); test ("7", "7", 0); test ("0x7", "7", 0); test ("0X7", "7", 0);
- test ("0b8", "", ErrorCode.MP); test ("0B8", "", ErrorCode.MP); test ("0o8", "",
ErrorCode.UNKNOWN_VARIABLE); test ("0O8", "", ErrorCode.UNKNOWN_VARIABLE); test ("008", "",
ErrorCode.INVALID); test ("8", "8", 0); test ("0x8", "8", 0); test ("0X8", "8", 0);
- test ("0b9", "", ErrorCode.MP); test ("0B9", "", ErrorCode.MP); test ("0o9", "",
ErrorCode.UNKNOWN_VARIABLE); test ("0O9", "", ErrorCode.UNKNOWN_VARIABLE); test ("009", "",
ErrorCode.INVALID); test ("9", "9", 0); test ("0x9", "9", 0); test ("0X9", "9", 0);
+ test ("0b8", "", ErrorCode.MP); test ("0B8", "", ErrorCode.MP); test ("0o8", "",
ErrorCode.UNKNOWN_VARIABLE); test ("0O8", "", ErrorCode.UNKNOWN_VARIABLE); test ("8", "8", 0); test ("0x8",
"8", 0); test ("0X8", "8", 0);
+ test ("0b9", "", ErrorCode.MP); test ("0B9", "", ErrorCode.MP); test ("0o9", "",
ErrorCode.UNKNOWN_VARIABLE); test ("0O9", "", ErrorCode.UNKNOWN_VARIABLE); test ("9", "9", 0); test ("0x9",
"9", 0); test ("0X9", "9", 0);
// // /* Note : "B", "b", "C", "c", "F", "f" are units, and hence have different error code. */
test ("0bA", "", ErrorCode.UNKNOWN_VARIABLE); test ("0BA", "", ErrorCode.UNKNOWN_VARIABLE); test ("0oA",
"", ErrorCode.UNKNOWN_VARIABLE); test ("0OA", "", ErrorCode.UNKNOWN_VARIABLE); test ("00A", "",
ErrorCode.UNKNOWN_VARIABLE); test ("A", "", ErrorCode.UNKNOWN_VARIABLE); test ("0xA", "10", 0); test ("0XA",
"10", 0);
test ("0bB", "", ErrorCode.UNKNOWN_VARIABLE); test ("0BB", "", ErrorCode.UNKNOWN_VARIABLE); test ("0oB",
"", ErrorCode.UNKNOWN_VARIABLE); test ("0OB", "", ErrorCode.UNKNOWN_VARIABLE); test ("00B", "",
ErrorCode.INVALID); test ("B", "", ErrorCode.INVALID); test ("0xB", "11", 0); test ("0XB", "11", 0);
@@ -700,7 +700,6 @@ private void test_base_conversion ()
test ("x in dec", "2", 0);
test ("x in hex", "2₁₆", 0);
- test ("012 in dec", "10", 0);
test ("0b1010 in dec", "10", 0);
test ("0B1010 in dec", "10", 0);
test ("0o012 in dec", "10", 0);
diff --git a/tests/test-serializer.vala b/tests/test-serializer.vala
index 67eba3ab..62d7d6a8 100644
--- a/tests/test-serializer.vala
+++ b/tests/test-serializer.vala
@@ -134,7 +134,6 @@ private void test_base_conversion (Serializer s)
test_number (s, "0b1010", 10, 10, "10");
test_number (s, "0B1010", 10, 10, "10");
- test_number (s, "012", 10, 10, "10");
test_number (s, "0o012", 10, 10, "10");
test_number (s, "0O012", 10, 10, "10");
test_number (s, "0xA", 10, 10, "10");
@@ -142,7 +141,6 @@ private void test_base_conversion (Serializer s)
test_number (s, "0b10103", 10, 10, null);
test_number (s, "0B10103", 10, 10, null);
- test_number (s, "0128", 10, 10, null);
test_number (s, "0o0128", 10, 10, null);
test_number (s, "0O0128", 10, 10, null);
test_number (s, "0xAH", 10, 10, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]