Skip to content

Commit 0ecb06d

Browse files
committed
update/clarify nan/inf rules in test
1 parent 0f9128e commit 0ecb06d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/StackExchange.Redis.Tests/RedisValueEquivalencyTests.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,12 @@ static void Check(RedisValue known, RedisValue test)
136136
CheckString(-1099511627848.6001, "-1099511627848.6001");
137137

138138
Check(double.NegativeInfinity, double.NegativeInfinity);
139-
Check(double.NegativeInfinity, "-inf");
140-
Check(double.NegativeInfinity, Bytes("-inf"));
141139
CheckString(double.NegativeInfinity, "-inf");
142140

143141
Check(double.PositiveInfinity, double.PositiveInfinity);
144-
Check(double.PositiveInfinity, "+inf");
145-
Check(double.PositiveInfinity, "inf");
146-
Check(double.PositiveInfinity, Bytes("+inf"));
147-
Check(double.PositiveInfinity, Bytes("inf"));
148142
CheckString(double.PositiveInfinity, "+inf");
149143

150144
Check(double.NaN, double.NaN);
151-
Check(double.NaN, "+nan");
152-
Check(double.NaN, "-nan");
153-
Check(double.NaN, "nan");
154-
Check(double.NaN, Bytes("+nan"));
155-
Check(double.NaN, Bytes("-nan"));
156-
Check(double.NaN, Bytes("nan"));
157145
CheckString(double.NaN, "NaN");
158146
}
159147

0 commit comments

Comments
 (0)