File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,15 +102,15 @@ TEST(QualityTests, SymbolRelevanceSignalsSanity) {
102
102
EXPECT_LT (Forbidden.evaluate (), Default.evaluate ());
103
103
104
104
SymbolRelevanceSignals PoorNameMatch;
105
- PoorNameMatch.NameMatch = 0.2 ;
105
+ PoorNameMatch.NameMatch = 0 .2f ;
106
106
EXPECT_LT (PoorNameMatch.evaluate (), Default.evaluate ());
107
107
}
108
108
109
109
TEST (QualityTests, SortText) {
110
- EXPECT_LT (sortText (std::numeric_limits<float >::infinity ()), sortText (1000.2 ));
111
- EXPECT_LT (sortText (1000.2 ), sortText (1 ));
112
- EXPECT_LT (sortText (1 ), sortText (0.3 ));
113
- EXPECT_LT (sortText (0.3 ), sortText (0 ));
110
+ EXPECT_LT (sortText (std::numeric_limits<float >::infinity ()), sortText (1000 .2f ));
111
+ EXPECT_LT (sortText (1000 .2f ), sortText (1 ));
112
+ EXPECT_LT (sortText (1 ), sortText (0 .3f ));
113
+ EXPECT_LT (sortText (0 .3f ), sortText (0 ));
114
114
EXPECT_LT (sortText (0 ), sortText (-10 ));
115
115
EXPECT_LT (sortText (-10 ), sortText (-std::numeric_limits<float >::infinity ()));
116
116
You can’t perform that action at this time.
0 commit comments