[gcalctool] remove trailing whitespace
- From: Robert Ancell <rancell src gnome org>
- To: svn-commits-list gnome org
- Subject: [gcalctool] remove trailing whitespace
- Date: Wed, 24 Jun 2009 03:45:03 +0000 (UTC)
commit cc402196afba31e0565c834cf4b793bb39d30409
Author: Robert Ancell <robert ancell gmail com>
Date: Wed Jun 24 13:44:56 2009 +1000
remove trailing whitespace
src/unittest.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/unittest.c b/src/unittest.c
index 71a1d0b..58278e0 100644
--- a/src/unittest.c
+++ b/src/unittest.c
@@ -48,7 +48,7 @@ static void pass(const char *format, ...)
va_start(args, format);
vprintf(format, args);
va_end(args);
- printf("\n");
+ printf("\n");
}
static void fail(const char *format, ...)
@@ -121,7 +121,7 @@ test_parser()
test("2-3", "â??1", 0);
test("2â??3", "â??1", 0);
test("3â??2", "1", 0);
- test("1â??0.9â??0.1", "0", 0);
+ test("1â??0.9â??0.1", "0", 0);
test("40000â??0.001", "39999.999", 0);
test("0.001â??40000", "â??39999.999", 0);
test("40000000â??40000000", "0", 0);
@@ -148,7 +148,7 @@ test_parser()
test("0÷0", "", -20001);
test("1+2Ã?3", "7", 0);
- test("1+(2Ã?3)", "7", 0);
+ test("1+(2Ã?3)", "7", 0);
test("(1+2)Ã?3", "9", 0);
test("100%", "1", 0);
@@ -156,7 +156,7 @@ test_parser()
test("100+1%", "101", 0);
test("100â??1%", "99", 0);
test("100Ã?1%", "1", 0);
- test("100÷1%", "10000", 0);
+ test("100÷1%", "10000", 0);
test("0!", "1", 0);
test("1!", "1", 0);
@@ -167,20 +167,20 @@ test_parser()
test("(â??1)!", "", -20001);
test("2²", "4", 0);
- test("2³", "8", 0);
+ test("2³", "8", 0);
test("2^0", "1", 0);
test("2^1", "2", 0);
test("2^2", "4", 0);
test("2^â??1", "0.5", 0);
- test("2^(â??1)", "0.5", 0);
+ test("2^(â??1)", "0.5", 0);
test("â??10^2", "â??100", 0);
test("(â??10)^2", "100", 0);
test("2^100", "1267650600228229401496703205376", 0);
test("4^3^2", "262144", 0);
- test("4^(3^2)", "262144", 0);
+ test("4^(3^2)", "262144", 0);
test("(4^3)^2", "4096", 0);
test("â??4", "2", 0);
- test("â??4â??2", "0", 0);
+ test("â??4â??2", "0", 0);
test("â??8", "2", 0);
test("â??16", "2", 0);
test("â??(2+2)", "2", 0);
@@ -206,7 +206,7 @@ test_parser()
test("|1|", "1", 0);
test("|â??1|", "1", 0);
- test("|3â??5|", "2", 0);
+ test("|3â??5|", "2", 0);
test("Abs(1)", "1", 0);
test("Abs(â??1)", "1", 0);
@@ -218,7 +218,7 @@ test_parser()
test("2 log 2", "0.602059991", 0);
test("ln â??1", "", -20001);
- test("ln 0", "", -20001);
+ test("ln 0", "", -20001);
test("ln 1", "0", 0);
test("ln 2", "0.693147181", 0);
test("ln e^1", "1", 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]