We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883e45d commit 771c378Copy full SHA for 771c378
1 file changed
exercises/practice/decimal/tests/decimal.rs
@@ -108,6 +108,17 @@ fn gt_negative_and_zero() {
108
assert!(decimal("0.0") > decimal("-1.0"));
109
}
110
111
+#[test]
112
+#[ignore]
113
+fn unequal_number_of_decimal_places() {
114
+ assert!(decimal("3.14") > decimal("3.13"));
115
+ assert!(decimal("3.14") > decimal("3.131"));
116
+ assert!(decimal("3.14") > decimal("3.1"));
117
+ assert!(decimal("3.13") < decimal("3.14"));
118
+ assert!(decimal("3.131") < decimal("3.14"));
119
+ assert!(decimal("3.1") < decimal("3.14"));
120
+}
121
+
122
// tests of arbitrary precision behavior
123
#[test]
124
#[ignore]
0 commit comments