Add scouts honor escape hatch for source embedding
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/bits/bits.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/tpdecode.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
TEST(getutf16, testNul) {
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "libc/limits.h"
|
||||
#include "libc/runtime/gc.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/tpdecode.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
wint_t wc;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "libc/bits/progn.h"
|
||||
#include "libc/bits/safemacros.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/tpencode.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
char buf[8];
|
||||
@@ -36,9 +37,10 @@ TEST(tpencode, testSpace) {
|
||||
}
|
||||
|
||||
TEST(tpencode, testGlyph) {
|
||||
ASSERT_BINEQ(u"ΓåÆ", PROGN(ASSERT_EQ(3, tpencode(buf, 8, u'→', false)), buf));
|
||||
ASSERT_BINEQ(u"→",
|
||||
PROGN(ASSERT_EQ(3, (tpencode)(buf, 8, u'→', false)), buf));
|
||||
ASSERT_EQ(3, tpencode(buf, 8, u'→', false));
|
||||
ASSERT_BINEQ(u"→", buf);
|
||||
ASSERT_EQ(3, (tpencode)(buf, 8, u'→', false));
|
||||
ASSERT_BINEQ(u"→", buf);
|
||||
}
|
||||
|
||||
TEST(tpencode, testMathematicalNotMuhPolicyDrivenBehavior_negativeOne) {
|
||||
|
||||
Reference in New Issue
Block a user