trackler 2.2.1.42 → 2.2.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/change/metadata.yml +2 -0
- data/problem-specifications/exercises/crypto-square/canonical-data.json +10 -65
- data/tracks/c/bin/run-tests +3 -0
- data/tracks/c/exercises/acronym/test/test_acronym.c +8 -0
- data/tracks/c/exercises/all-your-base/test/test_all_your_base.c +19 -0
- data/tracks/c/exercises/allergies/test/test_allergies.c +13 -0
- data/tracks/c/exercises/anagram/src/anagram.h +2 -2
- data/tracks/c/exercises/anagram/src/example.c +5 -5
- data/tracks/c/exercises/anagram/test/test_anagram.c +39 -29
- data/tracks/c/exercises/atbash-cipher/test/test_atbash_cipher.c +12 -0
- data/tracks/c/exercises/beer-song/test/test_beer_song.c +5 -0
- data/tracks/c/exercises/binary-search/test/test_binary_search.c +10 -0
- data/tracks/c/exercises/binary/test/test_binary.c +14 -0
- data/tracks/c/exercises/bob/test/test_bob.c +16 -0
- data/tracks/c/exercises/clock/test/test_clock.c +34 -0
- data/tracks/c/exercises/difference-of-squares/test/test_difference_of_squares.c +9 -0
- data/tracks/c/exercises/gigasecond/test/test_gigasecond.c +4 -0
- data/tracks/c/exercises/grains/test/test_grains.c +9 -0
- data/tracks/c/exercises/hamming/test/test_hamming.c +12 -0
- data/tracks/c/exercises/isogram/src/example.c +6 -6
- data/tracks/c/exercises/isogram/src/example.h +1 -1
- data/tracks/c/exercises/isogram/test/test_isogram.c +17 -9
- data/tracks/c/exercises/largest-series-product/test/test_largest_series_product.c +15 -0
- data/tracks/c/exercises/leap/test/test_leap.c +4 -0
- data/tracks/c/exercises/nth-prime/test/test_nth_prime.c +4 -0
- data/tracks/c/exercises/nucleotide-count/test/test_nucleotide_count.c +4 -0
- data/tracks/c/exercises/palindrome-products/test/test_palindrome_products.c +1 -0
- data/tracks/c/exercises/pangram/test/test_pangram.c +11 -0
- data/tracks/c/exercises/pascals-triangle/test/test_pascals_triangle.c +5 -0
- data/tracks/c/exercises/perfect-numbers/test/test_perfect_numbers.c +12 -0
- data/tracks/c/exercises/phone-number/test/test_phone_number.c +13 -0
- data/tracks/c/exercises/raindrops/test/test_raindrops.c +17 -0
- data/tracks/c/exercises/react/test/test_react.c +14 -0
- data/tracks/c/exercises/rna-transcription/test/test_rna_transcription.c +7 -0
- data/tracks/c/exercises/robot-simulator/test/test_robot_simulator.c +11 -0
- data/tracks/c/exercises/roman-numerals/test/test_roman_numerals.c +17 -0
- data/tracks/c/exercises/scrabble-score/test/test_scrabble_score.c +10 -0
- data/tracks/c/exercises/sieve/test/test_sieve.c +4 -0
- data/tracks/c/exercises/space-age/test/test_space_age.c +7 -0
- data/tracks/c/exercises/sum-of-multiples/test/test_sum_of_multiples.c +11 -0
- data/tracks/c/exercises/triangle/test/test_triangle.c +15 -0
- data/tracks/c/exercises/word-count/test/test_word_count.c +10 -0
- data/tracks/dart/.travis.yml +2 -7
- data/tracks/dart/bin/check_formatting +9 -0
- data/tracks/dart/exercises/bob/pubspec.lock +26 -26
- data/tracks/dart/exercises/difference-of-squares/pubspec.lock +26 -26
- data/tracks/dart/exercises/gigasecond/pubspec.lock +26 -26
- data/tracks/dart/exercises/hamming/pubspec.lock +26 -26
- data/tracks/dart/exercises/hello-world/pubspec.lock +26 -26
- data/tracks/dart/exercises/leap/pubspec.lock +26 -26
- data/tracks/dart/exercises/rna-transcription/pubspec.lock +26 -26
- data/tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart +1 -1
- data/tracks/dart/pubspec.lock +42 -30
- data/tracks/dart/pubspec.yaml +3 -3
- data/tracks/dart/test/exercises_test.dart +52 -14
- data/tracks/dart/tool/create-exercise +1 -1
- data/tracks/erlang/.travis.yml +2 -2
- data/tracks/erlang/config.json +10 -0
- data/tracks/erlang/exercises/bank-account/src/example.erl +67 -41
- data/tracks/erlang/exercises/bank-account/test/bank_account_tests.erl +0 -6
- data/tracks/erlang/exercises/luhn/src/example.erl +32 -14
- data/tracks/erlang/exercises/luhn/test/luhn_tests.erl +36 -10
- data/tracks/erlang/exercises/two-fer/README.md +19 -0
- data/tracks/erlang/exercises/two-fer/include/exercism.hrl +11 -0
- data/tracks/erlang/exercises/two-fer/rebar.config +30 -0
- data/tracks/erlang/exercises/two-fer/src/example.erl +11 -0
- data/tracks/erlang/exercises/two-fer/src/two_fer.app.src +9 -0
- data/tracks/erlang/exercises/two-fer/src/two_fer.erl +11 -0
- data/tracks/erlang/exercises/two-fer/test/two_fer_tests.erl +15 -0
- data/tracks/java/config.json +26 -3
- data/tracks/java/exercises/list-ops/.meta/hints.md +4 -0
- data/tracks/javascript/config.json +14 -0
- data/tracks/javascript/docs/ABOUT.md +16 -9
- data/tracks/javascript/exercises/diffie-hellman/README.md +73 -0
- data/tracks/javascript/exercises/diffie-hellman/diffie-hellman.spec.js +73 -0
- data/tracks/javascript/exercises/diffie-hellman/example.js +48 -0
- data/tracks/julia/config.json +1 -1
- data/tracks/python/exercises/accumulate/accumulate.py +1 -1
- data/tracks/python/exercises/allergies/allergies.py +2 -2
- data/tracks/python/exercises/alphametics/alphametics.py +1 -1
- data/tracks/python/exercises/anagram/anagram.py +1 -1
- data/tracks/python/exercises/binary-search/binary_search.py +1 -1
- data/tracks/python/exercises/binary/binary.py +1 -1
- data/tracks/python/exercises/collatz-conjecture/collatz_conjecture.py +1 -1
- data/tracks/python/exercises/crypto-square/crypto_square.py +1 -1
- data/tracks/python/exercises/diamond/diamond.py +1 -1
- data/tracks/python/exercises/grep/grep.py +2 -0
- data/tracks/python/exercises/hello-world/hello_world.py +1 -1
- data/tracks/python/exercises/largest-series-product/largest_series_product.py +1 -1
- data/tracks/python/exercises/minesweeper/minesweeper.py +2 -1
- data/tracks/python/exercises/nucleotide-count/nucleotide_count.py +2 -2
- data/tracks/python/exercises/ocr-numbers/ocr_numbers.py +2 -2
- data/tracks/python/exercises/octal/octal.py +1 -1
- data/tracks/python/exercises/pangram/pangram.py +1 -1
- data/tracks/python/exercises/pascals-triangle/pascals_triangle.py +3 -3
- data/tracks/python/exercises/poker/poker.py +1 -1
- data/tracks/python/exercises/prime-factors/prime_factors.py +1 -1
- data/tracks/python/exercises/protein-translation/protein_translation.py +2 -2
- data/tracks/python/exercises/proverb/proverb.py +1 -1
- data/tracks/python/exercises/queen-attack/queen_attack.py +2 -2
- data/tracks/python/exercises/rail-fence-cipher/rail_fence_cipher.py +3 -3
- data/tracks/python/exercises/roman-numerals/roman_numerals.py +1 -1
- data/tracks/python/exercises/rotational-cipher/rotational_cipher.py +1 -1
- data/tracks/python/exercises/say/say.py +1 -1
- data/tracks/python/exercises/secret-handshake/secret_handshake.py +2 -2
- data/tracks/python/exercises/space-age/space_age.py +1 -1
- data/tracks/python/exercises/tournament/tournament.py +1 -1
- data/tracks/python/exercises/trinary/trinary.py +1 -1
- data/tracks/python/exercises/two-fer/two_fer.py +1 -1
- data/tracks/python/exercises/word-count/word_count.py +1 -1
- data/tracks/ruby/lib/generator/exercise_case.rb +1 -1
- data/tracks/ruby/test/generator/exercise_case_test.rb +10 -0
- data/tracks/scala/testgen/src/main/resources/version-check-ignore.txt +1 -2
- data/tracks/sml/exercises/accumulate/README.md +19 -14
- data/tracks/sml/exercises/accumulate/accumulate.sml +1 -1
- data/tracks/sml/exercises/accumulate/example.sml +2 -2
- data/tracks/sml/exercises/accumulate/test.sml +26 -56
- data/tracks/sml/exercises/accumulate/testlib.sml +159 -0
- metadata +15 -2
@@ -8,71 +8,85 @@ void test_b0_is_decimal_0(void)
|
|
8
8
|
|
9
9
|
void test_b1_is_decimal_1(void)
|
10
10
|
{
|
11
|
+
TEST_IGNORE(); // delete this line to run test
|
11
12
|
TEST_ASSERT_EQUAL(1, convert("1"));
|
12
13
|
}
|
13
14
|
|
14
15
|
void test_b10_is_decimal_2(void)
|
15
16
|
{
|
17
|
+
TEST_IGNORE();
|
16
18
|
TEST_ASSERT_EQUAL(2, convert("10"));
|
17
19
|
}
|
18
20
|
|
19
21
|
void test_b11_is_decimal_3(void)
|
20
22
|
{
|
23
|
+
TEST_IGNORE();
|
21
24
|
TEST_ASSERT_EQUAL(3, convert("11"));
|
22
25
|
}
|
23
26
|
|
24
27
|
void test_b100_is_decimal_4(void)
|
25
28
|
{
|
29
|
+
TEST_IGNORE();
|
26
30
|
TEST_ASSERT_EQUAL(4, convert("100"));
|
27
31
|
}
|
28
32
|
|
29
33
|
void test_b1001_is_decimal_9(void)
|
30
34
|
{
|
35
|
+
TEST_IGNORE();
|
31
36
|
TEST_ASSERT_EQUAL(9, convert("1001"));
|
32
37
|
}
|
33
38
|
|
34
39
|
void test_b10001101000_is_decimal_1128(void)
|
35
40
|
{
|
41
|
+
TEST_IGNORE();
|
36
42
|
TEST_ASSERT_EQUAL(1128, convert("10001101000"));
|
37
43
|
}
|
38
44
|
|
39
45
|
void test_b11010_is_decimal_26(void)
|
40
46
|
{
|
47
|
+
TEST_IGNORE();
|
41
48
|
TEST_ASSERT_EQUAL(26, convert("11010"));
|
42
49
|
}
|
43
50
|
|
44
51
|
void test_binary_ignores_leading_zeros(void)
|
45
52
|
{
|
53
|
+
TEST_IGNORE();
|
46
54
|
TEST_ASSERT_EQUAL(31, convert("00000000011111"));
|
47
55
|
}
|
48
56
|
|
49
57
|
void test_2_is_not_a_valid_binary_digit(void)
|
50
58
|
{
|
59
|
+
TEST_IGNORE();
|
51
60
|
TEST_ASSERT_EQUAL(INVALID, convert("2"));
|
52
61
|
}
|
53
62
|
|
54
63
|
void test_a_number_containing_a_non_binary_digit_is_invalid(void)
|
55
64
|
{
|
65
|
+
TEST_IGNORE();
|
56
66
|
TEST_ASSERT_EQUAL(INVALID, convert("1002001"));
|
57
67
|
}
|
58
68
|
|
59
69
|
void test_a_number_with_trailing_non_binary_characters_is_invalid(void)
|
60
70
|
{
|
71
|
+
TEST_IGNORE();
|
61
72
|
TEST_ASSERT_EQUAL(INVALID, convert("10nope"));
|
62
73
|
}
|
63
74
|
|
64
75
|
void test_a_number_with_leading_non_binary_characters_is_invalid(void)
|
65
76
|
{
|
77
|
+
TEST_IGNORE();
|
66
78
|
TEST_ASSERT_EQUAL(INVALID, convert("nope10"));
|
67
79
|
}
|
68
80
|
|
69
81
|
void test_a_number_with_internal_non_binary_characters_is_invalid(void)
|
70
82
|
{
|
83
|
+
TEST_IGNORE();
|
71
84
|
TEST_ASSERT_EQUAL(INVALID, convert("10nope10"));
|
72
85
|
}
|
73
86
|
|
74
87
|
void test_a_number_and_a_word_whitespace_spearated_is_invalid(void)
|
75
88
|
{
|
89
|
+
TEST_IGNORE();
|
76
90
|
TEST_ASSERT_EQUAL(INVALID, convert("001 nope"));
|
77
91
|
}
|
78
92
|
|
@@ -9,12 +9,14 @@ void test_stating_something(void)
|
|
9
9
|
|
10
10
|
void test_shouting(void)
|
11
11
|
{
|
12
|
+
TEST_IGNORE(); // delete this line to run test
|
12
13
|
TEST_ASSERT_EQUAL_STRING("Whoa, chill out!", hey_bob("WATCH OUT!")
|
13
14
|
);
|
14
15
|
}
|
15
16
|
|
16
17
|
void test_asking_a_question(void)
|
17
18
|
{
|
19
|
+
TEST_IGNORE();
|
18
20
|
TEST_ASSERT_EQUAL_STRING("Sure.",
|
19
21
|
hey_bob
|
20
22
|
("Does this cryogenic chamber make me look fat?")
|
@@ -23,6 +25,7 @@ void test_asking_a_question(void)
|
|
23
25
|
|
24
26
|
void test_talking_forcefully(void)
|
25
27
|
{
|
28
|
+
TEST_IGNORE();
|
26
29
|
TEST_ASSERT_EQUAL_STRING("Whatever.",
|
27
30
|
hey_bob("Let's go make out behind the gym!")
|
28
31
|
);
|
@@ -30,6 +33,7 @@ void test_talking_forcefully(void)
|
|
30
33
|
|
31
34
|
void test_using_acronyms_in_regular_speech(void)
|
32
35
|
{
|
36
|
+
TEST_IGNORE();
|
33
37
|
TEST_ASSERT_EQUAL_STRING("Whatever.",
|
34
38
|
hey_bob
|
35
39
|
("It's OK if you don't want to go to the DMV.")
|
@@ -38,6 +42,7 @@ void test_using_acronyms_in_regular_speech(void)
|
|
38
42
|
|
39
43
|
void test_forceful_questions(void)
|
40
44
|
{
|
45
|
+
TEST_IGNORE();
|
41
46
|
TEST_ASSERT_EQUAL_STRING("Whoa, chill out!",
|
42
47
|
hey_bob("WHAT THE HELL WERE YOU THINKING?")
|
43
48
|
);
|
@@ -45,24 +50,28 @@ void test_forceful_questions(void)
|
|
45
50
|
|
46
51
|
void test_shouting_numbers(void)
|
47
52
|
{
|
53
|
+
TEST_IGNORE();
|
48
54
|
TEST_ASSERT_EQUAL_STRING("Whoa, chill out!", hey_bob("1, 2, 3 GO!")
|
49
55
|
);
|
50
56
|
}
|
51
57
|
|
52
58
|
void test_only_numbers(void)
|
53
59
|
{
|
60
|
+
TEST_IGNORE();
|
54
61
|
TEST_ASSERT_EQUAL_STRING("Whatever.", hey_bob("1, 2, 3")
|
55
62
|
);
|
56
63
|
}
|
57
64
|
|
58
65
|
void test_question_with_only_numbers(void)
|
59
66
|
{
|
67
|
+
TEST_IGNORE();
|
60
68
|
TEST_ASSERT_EQUAL_STRING("Sure.", hey_bob("4?")
|
61
69
|
);
|
62
70
|
}
|
63
71
|
|
64
72
|
void test_shouting_with_special_characters(void)
|
65
73
|
{
|
74
|
+
TEST_IGNORE();
|
66
75
|
TEST_ASSERT_EQUAL_STRING("Whoa, chill out!",
|
67
76
|
hey_bob
|
68
77
|
("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!")
|
@@ -71,12 +80,14 @@ void test_shouting_with_special_characters(void)
|
|
71
80
|
|
72
81
|
void test_shouting_with_no_exclamation_mark(void)
|
73
82
|
{
|
83
|
+
TEST_IGNORE();
|
74
84
|
TEST_ASSERT_EQUAL_STRING("Whoa, chill out!", hey_bob("I HATE YOU")
|
75
85
|
);
|
76
86
|
}
|
77
87
|
|
78
88
|
void test_statement_containing_question_mark(void)
|
79
89
|
{
|
90
|
+
TEST_IGNORE();
|
80
91
|
TEST_ASSERT_EQUAL_STRING("Whatever.",
|
81
92
|
hey_bob("Ending with a ? means a question.")
|
82
93
|
);
|
@@ -84,6 +95,7 @@ void test_statement_containing_question_mark(void)
|
|
84
95
|
|
85
96
|
void test_prattling_on(void)
|
86
97
|
{
|
98
|
+
TEST_IGNORE();
|
87
99
|
TEST_ASSERT_EQUAL_STRING("Sure.",
|
88
100
|
hey_bob("Wait! Hang on. Are you going to be OK?")
|
89
101
|
);
|
@@ -91,24 +103,28 @@ void test_prattling_on(void)
|
|
91
103
|
|
92
104
|
void test_question_with_trailing_whitespace(void)
|
93
105
|
{
|
106
|
+
TEST_IGNORE();
|
94
107
|
TEST_ASSERT_EQUAL_STRING("Sure.", hey_bob("Are you ok? ")
|
95
108
|
);
|
96
109
|
}
|
97
110
|
|
98
111
|
void test_silence(void)
|
99
112
|
{
|
113
|
+
TEST_IGNORE();
|
100
114
|
TEST_ASSERT_EQUAL_STRING("Fine. Be that way!", hey_bob("")
|
101
115
|
);
|
102
116
|
}
|
103
117
|
|
104
118
|
void test_prolonged_silence(void)
|
105
119
|
{
|
120
|
+
TEST_IGNORE();
|
106
121
|
TEST_ASSERT_EQUAL_STRING("Fine. Be that way!", hey_bob(" ")
|
107
122
|
);
|
108
123
|
}
|
109
124
|
|
110
125
|
void test_not_all_silence(void)
|
111
126
|
{
|
127
|
+
TEST_IGNORE();
|
112
128
|
TEST_ASSERT_EQUAL_STRING("Whatever.",
|
113
129
|
hey_bob(" A bit of silence can be nice. ")
|
114
130
|
);
|
@@ -56,6 +56,7 @@ void test_on_the_hour(void)
|
|
56
56
|
|
57
57
|
void test_past_the_hour(void)
|
58
58
|
{
|
59
|
+
TEST_IGNORE(); // delete this line to run test
|
59
60
|
int hour = 11;
|
60
61
|
int minute = 9;
|
61
62
|
char *expected_clock_text = "11:09";
|
@@ -65,6 +66,7 @@ void test_past_the_hour(void)
|
|
65
66
|
|
66
67
|
void test_midnight_is_zero_hours(void)
|
67
68
|
{
|
69
|
+
TEST_IGNORE();
|
68
70
|
int hour = 24;
|
69
71
|
int minute = 0;
|
70
72
|
char *expected_clock_text = "00:00";
|
@@ -74,6 +76,7 @@ void test_midnight_is_zero_hours(void)
|
|
74
76
|
|
75
77
|
void test_hour_rolls_over(void)
|
76
78
|
{
|
79
|
+
TEST_IGNORE();
|
77
80
|
int hour = 25;
|
78
81
|
int minute = 0;
|
79
82
|
char *expected_clock_text = "01:00";
|
@@ -83,6 +86,7 @@ void test_hour_rolls_over(void)
|
|
83
86
|
|
84
87
|
void test_hour_rolls_over_continuously(void)
|
85
88
|
{
|
89
|
+
TEST_IGNORE();
|
86
90
|
int hour = 100;
|
87
91
|
int minute = 0;
|
88
92
|
char *expected_clock_text = "04:00";
|
@@ -92,6 +96,7 @@ void test_hour_rolls_over_continuously(void)
|
|
92
96
|
|
93
97
|
void test_sixty_minutes_is_next_hour(void)
|
94
98
|
{
|
99
|
+
TEST_IGNORE();
|
95
100
|
int hour = 1;
|
96
101
|
int minute = 60;
|
97
102
|
char *expected_clock_text = "02:00";
|
@@ -101,6 +106,7 @@ void test_sixty_minutes_is_next_hour(void)
|
|
101
106
|
|
102
107
|
void test_minutes_roll_over(void)
|
103
108
|
{
|
109
|
+
TEST_IGNORE();
|
104
110
|
int hour = 0;
|
105
111
|
int minute = 160;
|
106
112
|
char *expected_clock_text = "02:40";
|
@@ -110,6 +116,7 @@ void test_minutes_roll_over(void)
|
|
110
116
|
|
111
117
|
void test_minutes_roll_over_continuously(void)
|
112
118
|
{
|
119
|
+
TEST_IGNORE();
|
113
120
|
int hour = 0;
|
114
121
|
int minute = 1723;
|
115
122
|
char *expected_clock_text = "04:43";
|
@@ -119,6 +126,7 @@ void test_minutes_roll_over_continuously(void)
|
|
119
126
|
|
120
127
|
void test_hour_and_minutes_roll_over(void)
|
121
128
|
{
|
129
|
+
TEST_IGNORE();
|
122
130
|
int hour = 25;
|
123
131
|
int minute = 160;
|
124
132
|
char *expected_clock_text = "03:40";
|
@@ -128,6 +136,7 @@ void test_hour_and_minutes_roll_over(void)
|
|
128
136
|
|
129
137
|
void test_hour_and_minutes_roll_over_continuously(void)
|
130
138
|
{
|
139
|
+
TEST_IGNORE();
|
131
140
|
int hour = 201;
|
132
141
|
int minute = 3001;
|
133
142
|
char *expected_clock_text = "11:01";
|
@@ -137,6 +146,7 @@ void test_hour_and_minutes_roll_over_continuously(void)
|
|
137
146
|
|
138
147
|
void test_hour_and_minutes_roll_over_to_exactly_midnight(void)
|
139
148
|
{
|
149
|
+
TEST_IGNORE();
|
140
150
|
int hour = 72;
|
141
151
|
int minute = 8640;
|
142
152
|
char *expected_clock_text = "00:00";
|
@@ -146,6 +156,7 @@ void test_hour_and_minutes_roll_over_to_exactly_midnight(void)
|
|
146
156
|
|
147
157
|
void test_negative_hour(void)
|
148
158
|
{
|
159
|
+
TEST_IGNORE();
|
149
160
|
int hour = -1;
|
150
161
|
int minute = 15;
|
151
162
|
char *expected_clock_text = "23:15";
|
@@ -155,6 +166,7 @@ void test_negative_hour(void)
|
|
155
166
|
|
156
167
|
void test_negative_hour_rolls_over(void)
|
157
168
|
{
|
169
|
+
TEST_IGNORE();
|
158
170
|
int hour = -25;
|
159
171
|
int minute = 0;
|
160
172
|
char *expected_clock_text = "23:00";
|
@@ -164,6 +176,7 @@ void test_negative_hour_rolls_over(void)
|
|
164
176
|
|
165
177
|
void test_negative_hour_rolls_over_continuously(void)
|
166
178
|
{
|
179
|
+
TEST_IGNORE();
|
167
180
|
int hour = -91;
|
168
181
|
int minute = 0;
|
169
182
|
char *expected_clock_text = "05:00";
|
@@ -173,6 +186,7 @@ void test_negative_hour_rolls_over_continuously(void)
|
|
173
186
|
|
174
187
|
void test_negative_minutes(void)
|
175
188
|
{
|
189
|
+
TEST_IGNORE();
|
176
190
|
int hour = 1;
|
177
191
|
int minute = -40;
|
178
192
|
char *expected_clock_text = "00:20";
|
@@ -182,6 +196,7 @@ void test_negative_minutes(void)
|
|
182
196
|
|
183
197
|
void test_negative_minutes_roll_over(void)
|
184
198
|
{
|
199
|
+
TEST_IGNORE();
|
185
200
|
int hour = 1;
|
186
201
|
int minute = -160;
|
187
202
|
char *expected_clock_text = "22:20";
|
@@ -191,6 +206,7 @@ void test_negative_minutes_roll_over(void)
|
|
191
206
|
|
192
207
|
void test_negative_minutes_roll_over_continuously(void)
|
193
208
|
{
|
209
|
+
TEST_IGNORE();
|
194
210
|
int hour = 1;
|
195
211
|
int minute = -4820;
|
196
212
|
char *expected_clock_text = "16:40";
|
@@ -200,6 +216,7 @@ void test_negative_minutes_roll_over_continuously(void)
|
|
200
216
|
|
201
217
|
void test_negative_hour_and_minutes_both_roll_over(void)
|
202
218
|
{
|
219
|
+
TEST_IGNORE();
|
203
220
|
int hour = -25;
|
204
221
|
int minute = -160;
|
205
222
|
char *expected_clock_text = "20:20";
|
@@ -209,6 +226,7 @@ void test_negative_hour_and_minutes_both_roll_over(void)
|
|
209
226
|
|
210
227
|
void test_negative_hour_and_minutes_both_roll_over_continuously(void)
|
211
228
|
{
|
229
|
+
TEST_IGNORE();
|
212
230
|
int hour = -121;
|
213
231
|
int minute = -5810;
|
214
232
|
char *expected_clock_text = "22:10";
|
@@ -218,6 +236,7 @@ void test_negative_hour_and_minutes_both_roll_over_continuously(void)
|
|
218
236
|
|
219
237
|
void test_add_minutes(void)
|
220
238
|
{
|
239
|
+
TEST_IGNORE();
|
221
240
|
int hour = 10;
|
222
241
|
int minute = 0;
|
223
242
|
int minute_offset = 3;
|
@@ -229,6 +248,7 @@ void test_add_minutes(void)
|
|
229
248
|
|
230
249
|
void test_add_no_minutes(void)
|
231
250
|
{
|
251
|
+
TEST_IGNORE();
|
232
252
|
int hour = 6;
|
233
253
|
int minute = 41;
|
234
254
|
int minute_offset = 0;
|
@@ -240,6 +260,7 @@ void test_add_no_minutes(void)
|
|
240
260
|
|
241
261
|
void test_add_to_next_hour(void)
|
242
262
|
{
|
263
|
+
TEST_IGNORE();
|
243
264
|
int hour = 0;
|
244
265
|
int minute = 45;
|
245
266
|
int minute_offset = 40;
|
@@ -251,6 +272,7 @@ void test_add_to_next_hour(void)
|
|
251
272
|
|
252
273
|
void test_add_more_than_one_hour(void)
|
253
274
|
{
|
275
|
+
TEST_IGNORE();
|
254
276
|
int hour = 10;
|
255
277
|
int minute = 0;
|
256
278
|
int minute_offset = 61;
|
@@ -262,6 +284,7 @@ void test_add_more_than_one_hour(void)
|
|
262
284
|
|
263
285
|
void test_add_more_than_two_hours_with_carry(void)
|
264
286
|
{
|
287
|
+
TEST_IGNORE();
|
265
288
|
int hour = 0;
|
266
289
|
int minute = 45;
|
267
290
|
int minute_offset = 160;
|
@@ -273,6 +296,7 @@ void test_add_more_than_two_hours_with_carry(void)
|
|
273
296
|
|
274
297
|
void test_add_across_midnight(void)
|
275
298
|
{
|
299
|
+
TEST_IGNORE();
|
276
300
|
int hour = 23;
|
277
301
|
int minute = 59;
|
278
302
|
int minute_offset = 2;
|
@@ -284,6 +308,7 @@ void test_add_across_midnight(void)
|
|
284
308
|
|
285
309
|
void test_add_more_than_one_day(void)
|
286
310
|
{
|
311
|
+
TEST_IGNORE();
|
287
312
|
int hour = 5;
|
288
313
|
int minute = 32;
|
289
314
|
int minute_offset = 1500;
|
@@ -295,6 +320,7 @@ void test_add_more_than_one_day(void)
|
|
295
320
|
|
296
321
|
void test_add_more_than_two_days(void)
|
297
322
|
{
|
323
|
+
TEST_IGNORE();
|
298
324
|
int hour = 1;
|
299
325
|
int minute = 1;
|
300
326
|
int minute_offset = 3500;
|
@@ -306,6 +332,7 @@ void test_add_more_than_two_days(void)
|
|
306
332
|
|
307
333
|
void test_subtract_minutes(void)
|
308
334
|
{
|
335
|
+
TEST_IGNORE();
|
309
336
|
int hour = 10;
|
310
337
|
int minute = 3;
|
311
338
|
int minute_offset = -3;
|
@@ -317,6 +344,7 @@ void test_subtract_minutes(void)
|
|
317
344
|
|
318
345
|
void test_subtract_to_previous_hour(void)
|
319
346
|
{
|
347
|
+
TEST_IGNORE();
|
320
348
|
int hour = 10;
|
321
349
|
int minute = 3;
|
322
350
|
int minute_offset = -30;
|
@@ -328,6 +356,7 @@ void test_subtract_to_previous_hour(void)
|
|
328
356
|
|
329
357
|
void test_subtract_more_than_an_hour(void)
|
330
358
|
{
|
359
|
+
TEST_IGNORE();
|
331
360
|
int hour = 10;
|
332
361
|
int minute = 3;
|
333
362
|
int minute_offset = -70;
|
@@ -339,6 +368,7 @@ void test_subtract_more_than_an_hour(void)
|
|
339
368
|
|
340
369
|
void test_subtract_across_midnight(void)
|
341
370
|
{
|
371
|
+
TEST_IGNORE();
|
342
372
|
int hour = 0;
|
343
373
|
int minute = 3;
|
344
374
|
int minute_offset = -4;
|
@@ -350,6 +380,7 @@ void test_subtract_across_midnight(void)
|
|
350
380
|
|
351
381
|
void test_subtract_more_than_two_hours(void)
|
352
382
|
{
|
383
|
+
TEST_IGNORE();
|
353
384
|
int hour = 0;
|
354
385
|
int minute = 0;
|
355
386
|
int minute_offset = -160;
|
@@ -361,6 +392,7 @@ void test_subtract_more_than_two_hours(void)
|
|
361
392
|
|
362
393
|
void test_subtract_more_than_two_hours_with_borrow(void)
|
363
394
|
{
|
395
|
+
TEST_IGNORE();
|
364
396
|
int hour = 6;
|
365
397
|
int minute = 15;
|
366
398
|
int minute_offset = -160;
|
@@ -372,6 +404,7 @@ void test_subtract_more_than_two_hours_with_borrow(void)
|
|
372
404
|
|
373
405
|
void test_subtract_more_than_one_day(void)
|
374
406
|
{
|
407
|
+
TEST_IGNORE();
|
375
408
|
int hour = 5;
|
376
409
|
int minute = 32;
|
377
410
|
int minute_offset = -1500;
|
@@ -383,6 +416,7 @@ void test_subtract_more_than_one_day(void)
|
|
383
416
|
|
384
417
|
void test_subtract_more_than_two_days(void)
|
385
418
|
{
|
419
|
+
TEST_IGNORE();
|
386
420
|
int hour = 2;
|
387
421
|
int minute = 20;
|
388
422
|
int minute_offset = -3000;
|