- Timestamp:
- Aug 25, 2017, 10:47:42 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 19a9822, 6b224a52, f22b7aef
- Parents:
- ddf8a29 (diff), 3eab308c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/tests
- Files:
-
- 3 added
- 6 edited
- 1 moved
-
.expect/fstream_test.txt (added)
-
.expect/gmp.txt (moved) (moved from src/tests/.expect/64/gmp.txt ) (1 diff)
-
.in/fstream_test.txt (added)
-
.in/gmp.txt (added)
-
fstream_test.c (modified) (2 diffs)
-
gmp.c (modified) (2 diffs)
-
io.c (modified) (2 diffs)
-
rational.c (modified) (2 diffs)
-
test.py (modified) (1 diff)
-
vector/vector_test.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/gmp.txt
rddf8a29 rf676b84 27 27 16666666666666666666, 2 16666666666666666666, 2 28 28 x:16666666666666666666 y:2 29 30 12345678901234567890123456789 12345678901234567890123456789 12345678901234567890123456789 29 31 30 32 Fibonacci Numbers -
src/tests/fstream_test.c
rddf8a29 rf676b84 7 7 // fstream_test.c -- 8 8 // 9 // Author : Richard C. Bilson9 // Author : Peter A. Buhr 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 2 15:25:54 201613 // Update Count : 6 112 // Last Modified On : Thu Aug 24 11:30:26 2017 13 // Update Count : 65 14 14 // 15 15 … … 19 19 int nombre; 20 20 sout | "Entrez un nombre, s'il vous plaît:" | endl; 21 sin | &nombre; 22 sout | "Vous avez entré" | nombre | "stocké à l'adresse" | &nombre | endl; 23 sout | "nombre" | nombre | "est" 24 | (nombre > 0 ? "plus grand que" : nombre == 0 ? "égal à" : "moins de") 25 | "zéro" | endl; 21 sin | nombre; 22 sout | "Vous avez entré" | nombre | endl; 23 sout | "le nombre" | nombre | "est" 24 | (nombre > 0 ? "positif" : nombre == 0 ? "zéro" : "négatif") | endl; 26 25 27 26 sout | "Entrez trois nombres, s'il vous plaît: " | endl; 28 27 int i, j, k; 29 sin | &i | &j | &k;28 sin | i | j | k; 30 29 sout | "Vous avez entré" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl; 31 30 } -
src/tests/gmp.c
rddf8a29 rf676b84 10 10 // Created On : Tue Apr 19 08:55:51 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 13 16:35:01201713 // Update Count : 54 112 // Last Modified On : Thu Aug 24 09:33:26 2017 13 // Update Count : 543 14 14 // 15 15 … … 70 70 sout | endl; 71 71 72 sin | x | y | z; 73 sout | x | y | z | endl; 74 75 sout | endl; 76 72 77 sout | "Fibonacci Numbers" | endl; 73 78 Int fn, fn1, fn2; -
src/tests/io.c
rddf8a29 rf676b84 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 6 23:26:12201713 // Update Count : 7 812 // Last Modified On : Wed Aug 23 21:27:50 2017 13 // Update Count : 79 14 14 // 15 15 … … 89 89 90 90 sout | "input bacis types" | endl; 91 &in | &c// character92 | &si | &usi | &i | &ui | &li | &uli | &lli | &ulli// integral93 | &f | &d | &ld // floating point94 | &fc | &dc | &ldc// floating-point complex91 &in | c // character 92 | si | usi | i | ui | li | uli | lli | ulli // integral 93 | f | d | ld // floating point 94 | fc | dc | ldc // floating-point complex 95 95 | cstr( s1 ) | cstr( s2, size ); // C string, length unchecked and checked 96 96 sout | endl; -
src/tests/rational.c
rddf8a29 rf676b84 10 10 // Created On : Mon Mar 28 08:43:12 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 17 15:46:35201713 // Update Count : 6 512 // Last Modified On : Wed Aug 23 21:40:11 2017 13 // Update Count : 66 14 14 // 15 15 … … 92 92 sout | x | endl; 93 93 94 sin | &a | &b;94 sin | a | b; 95 95 sout | a | b | endl; 96 96 } // main -
src/tests/test.py
rddf8a29 rf676b84 174 174 if make_ret == 0 : 175 175 # fetch optional input 176 stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test. path) else ""176 stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test.name) else "" 177 177 178 178 if fileIsExecutable(test.name) : -
src/tests/vector/vector_test.c
rddf8a29 rf676b84 9 9 // Author : Richard C. Bilson 10 10 // Created On : Wed May 27 17:56:53 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Apr 27 17:31:27 201613 // Update Count : 1 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 24 08:15:38 2017 13 // Update Count : 19 14 14 // 15 15 … … 27 27 sout | "enter N elements and C-d on a separate line:" | endl; 28 28 for ( ;; ) { 29 sin | #29 sin | num; 30 30 if ( fail( sin ) || eof( sin ) ) break; 31 31 append( &vec, num );
Note:
See TracChangeset
for help on using the changeset viewer.