Skip to content

Commit cb4dd29

Browse files
committed
Remove tests that fail in emscripten
1 parent bf54513 commit cb4dd29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/yup_core/yup_Result.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
using namespace yup;
2727

28-
static String operator"" _S (const char* chars, size_t)
28+
static String operator""_S (const char* chars, size_t)
2929
{
3030
return String { chars };
3131
}

tests/yup_graphics/yup_Font.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ TEST (FontTests, LoadFromDirectory)
155155
EXPECT_FALSE (result.wasOk());
156156
}
157157

158+
#if ! YUP_EMSCRIPTEN
158159
TEST (FontTests, LoadFromFileWithValidFile)
159160
{
160161
Font font;
@@ -490,6 +491,7 @@ TEST (FontTests, VariableFont_FontMetrics)
490491
EXPECT_NE (0.0f, font.getDescent());
491492
EXPECT_GT (font.getWeight(), 0);
492493
}
494+
#endif
493495

494496
// ==============================================================================
495497
// Height Tests

0 commit comments

Comments
 (0)