File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -525,10 +525,7 @@ class LIBSCRATCHCPP_EXPORT Value
525
525
return stringsEqual (v1.toUtf16 (), v2.toUtf16 ());
526
526
default :
527
527
if ((static_cast <int >(v1.m_type ) < 0 ) && (static_cast <int >(v2.m_type ) < 0 )) {
528
- if (v1.m_type == Type::NaN || v2.m_type == Type::NaN)
529
- return false ;
530
- else
531
- return ((v1.m_type == Type::Infinity && v2.m_type == Type::Infinity) || (v1.m_type == Type::NegativeInfinity && v2.m_type == Type::NegativeInfinity));
528
+ return v1.m_type == v2.m_type ;
532
529
}
533
530
}
534
531
} else {
Original file line number Diff line number Diff line change @@ -1740,9 +1740,8 @@ TEST(ValueTest, EqualityOperators)
1740
1740
ASSERT_TRUE (v3 == v4);
1741
1741
ASSERT_FALSE (v3 != v4);
1742
1742
1743
- // TODO: Enable this after #196 is fixed
1744
- /* ASSERT_TRUE(v5 == v6);
1745
- ASSERT_FALSE(v5 != v6);*/
1743
+ ASSERT_TRUE (v5 == v6);
1744
+ ASSERT_FALSE (v5 != v6);
1746
1745
1747
1746
ASSERT_FALSE (v1 == v3);
1748
1747
ASSERT_TRUE (v1 != v3);
You can’t perform that action at this time.
0 commit comments