Skip to content

Commit d6e63d4

Browse files
committed
Auto-updated example output
1 parent ede10f7 commit d6e63d4

File tree

157 files changed

+1121
-926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1121
-926
lines changed

annotations/AtUnitComposition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public class AtUnitComposition {
2121
}
2222
/* Output:
2323
annotations.AtUnitComposition
24-
. _methodOne
2524
. _methodTwo This is methodTwo
2625
26+
. _methodOne
2727
OK (2 tests)
2828
*/

annotations/AtUnitExample1.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public int methodTwo() {
2828
/* Output:
2929
annotations.AtUnitExample1
3030
. anotherDisappointment (failed)
31-
. methodOneTest
32-
. failureTest (failed)
33-
. m3
3431
. m2 This is methodTwo
3532
33+
. m3
34+
. failureTest (failed)
35+
. methodOneTest
3636
(5 tests)
3737
3838
>>> 2 FAILURES <<<

annotations/AtUnitExample4.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,19 @@ public String scrambleWord() {
5757
}
5858
}
5959
/* Output:
60-
starting
6160
annotations.AtUnitExample4
62-
. scramble1 'All'
63-
lAl
61+
. words 'All'
62+
(failed)
63+
. scramble1 'brontosauruses'
64+
ntsaueorosurbs
65+
(failed)
66+
. scramble2 'are'
67+
are
68+
(failed)
69+
(3 tests)
6470
65-
. scramble2 'brontosauruses'
66-
tsaeborornussu
67-
68-
. words 'are'
69-
70-
OK (3 tests)
71+
>>> 3 FAILURES <<<
72+
annotations.AtUnitExample4: words
73+
annotations.AtUnitExample4: scramble1
74+
annotations.AtUnitExample4: scramble2
7175
*/

annotations/AtUnitExternalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public class AtUnitExternalTest extends AtUnitExample1 {
1717
}
1818
/* Output:
1919
annotations.AtUnitExternalTest
20+
. _methodOne
2021
. _methodTwo This is methodTwo
2122
22-
. _methodOne
2323
OK (2 tests)
2424
*/

annotations/HashSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class HashSetTest {
2626
}
2727
/* Output:
2828
annotations.HashSetTest
29+
. _remove
2930
. initialization
3031
. _contains
31-
. _remove
3232
OK (3 tests)
3333
*/

annotations/StackLStringTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class StackLStringTest extends StackL<String> {
3131
}
3232
/* Output:
3333
annotations.StackLStringTest
34-
. _top
3534
. _push
35+
. _top
3636
. _pop
3737
OK (3 tests)
3838
*/

annotations/database/TableCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ CREATE TABLE MEMBER(
9999
FIRSTNAME VARCHAR(30),
100100
LASTNAME VARCHAR(50),
101101
AGE INT,
102-
HANDLE VARCHAR(30) PRIMARY KEY);
102+
REFERENCE VARCHAR(30) PRIMARY KEY);
103103
*/

arrays/AlphabeticSearch.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ public static void main(String[] args) {
1919
}
2020
}
2121
/* Output:
22-
[bkIna, cQrGs, cXZJo, dLsmw, eGZMm, EqUCB, gwsqP, hKcxr,
23-
HLGEa, HqXum, HxxHv, JMRoE, JmzMs, Mesbt, MNvqe, nyGcF,
24-
ogoYW, OneOE, OWZnT, RFJQA, rUkZP, sgqia, slJrL, suEcU,
25-
uTpnX, vpfFv, WHkjU, xxEAJ, YNzbr, zDyCy]
22+
[anmkkyh, bhmupju, btpenpc, cjwzmmr, cuxszgv, eloztdv,
23+
ewcippc, ezdeklu, fcjpthl, fqmlgsh, gmeinne, hyoubzl,
24+
jbvlgwc, jlxpqds, ljlbynx, mvducuj, qgekgly, skddcat,
25+
taprwxz, uybypgp, vjsszkn, vniyapk, vqqakbm, vwodhcf,
26+
ydpulcq, ygpoalk, yskvett, zehpfmm, zofmmvm, zrxmclh]
2627
Index: 10
27-
HxxHv
28+
gmeinne
2829
*/

arrays/ArrayCopying.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ public static void main(String[] args) {
6969
}
7070
}
7171
/* Output:
72-
a1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
73-
a1 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
74-
a2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
75-
a2 = [0, 1, 2, 3, 4, 5, 6]
76-
a2 = [0, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0]
77-
a4 = [4, 5, 6, 7, 8, 9, 10, 11]
72+
a1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
73+
a1: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
74+
a2: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
75+
a2: [0, 1, 2, 3, 4, 5, 6]
76+
a2: [0, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0]
77+
a4: [4, 5, 6, 7, 8, 9, 10, 11]
7878
[Sub0, Sub1, Sub2, Sub3, Sub4, Sub5, Sub6]
7979
[Sub0, Sub1, Sub2, Sub3, Sub4, Sub5, Sub6]
8080
java.lang.ArrayStoreException

arrays/ArraySearching.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public static void main(String[] args) {
2626
}
2727
}
2828
/* Output:
29-
Sorted array: [125, 267, 635, 650, 1131, 1506, 1634,
30-
2400, 2766, 3063, 3768, 3941, 4720, 4762, 4948, 5070,
31-
5682, 5807, 6177, 6193, 6656, 7021, 8479, 8737, 9954]
29+
Sorted array: [125, 267, 635, 650, 1131, 1506, 1634, 2400,
30+
2766, 3063, 3768, 3941, 4720, 4762, 4948, 5070, 5682, 5807,
31+
6177, 6193, 6656, 7021, 8479, 8737, 9954]
3232
Location of 635 is 2, a[2] is 635
3333
*/

0 commit comments

Comments
 (0)