-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gudipudi_Manikanta_PA1.txt
54 lines (49 loc) · 1.67 KB
/
Gudipudi_Manikanta_PA1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Ruby intro part 1
#sum
[32m should be defined[0m
[32m returns correct sum[0m
[32m works on the empty array[0m
#max_2_sum
[32m should be defined[0m
[32m returns the correct sum[0m
[32m works even if 2 largest values are the same[0m
[32m returns zero if array is empty[0m
[32m returns value of the element if just one element[0m
#sum_to_n?
[32m should be defined[0m
[32m returns true when any two elements sum to the second argument[0m
[32m returns false for any single element array[0m
[32m returns false for an empty array[0m
Ruby intro part 2
#hello
[32m should be defined[0m
[32m returns the correct string[0m
#starts_with_consonant?
[32m should be defined[0m
[32m classifies true cases[0m
[32m classifies false cases[0m
[32m works on the empty string[0m
[32m works on nonletters[0m
#binary_multiple_of_4?
[32m should be defined[0m
[32m classifies valid binary numbers[0m
[32m rejects invalid binary numbers[0m
Ruby intro part 3
BookInStock
[32m should be defined[0m
getters and setters
[32m should set ISBN[0m
[32m should set price[0m
[32m should be able to change ISBN[0m
[32m should be able to change price[0m
constructor
[32m should reject invalid ISBN number[0m
[32m should reject zero price[0m
[32m should reject negative price[0m
#price_as_string
[32m should be defined[0m
[32m should display 33.95 as $33.95[0m
[32m should display 1.1 as $1.10[0m
[32m should display 20 as $20.00[0m
Finished in 0.00571 seconds (files took 0.0654 seconds to load)
[32m34 examples, 0 failures[0m