Skip to content

Commit bb3f27c

Browse files
author
Kazuki Higashiguchi
authored
Merge pull request #12 from Khigashiguchi/chapter/11
Chapter/11 不要になったら消す
2 parents 877ff16 + 1d8b1d1 commit bb3f27c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
- [x]timesの一般化
2020
- [x]FrancとDollarを比較する
2121
- [x]通貨の概念
22-
- [ ]testFrancMultiplicationを削除する?
22+
- [x]testFrancMultiplicationを削除する?

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,9 @@ mod tests {
5353
fn test_equality() {
5454
assert!(Money::dollar(5).equals(Money::dollar(5)));
5555
assert!(!Money::dollar(5).equals(Money::dollar(6)));
56-
assert!(Money::franc(5).equals(Money::franc(5)));
57-
assert!(!Money::franc(5).equals(Money::franc(6)));
5856
assert!(!Money::franc(5).equals(Money::dollar(5)));
5957
}
6058
#[test]
61-
fn test_franc_multiplication() {
62-
let five = Money::franc(5);
63-
assert!(Money::franc(10).equals(five.times(2)));
64-
assert!(Money::franc(15).equals(five.times(3)));
65-
}
66-
#[test]
6759
fn test_currency() {
6860
assert_eq!("USD", Money::dollar(1).currency());
6961
assert_eq!("CHF", Money::franc(1).currency());

0 commit comments

Comments
 (0)