mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Correct more typos (#500)
This commit is contained in:
parent
8b469389f6
commit
d4000bb8f7
30 changed files with 39 additions and 39 deletions
|
@ -47,7 +47,7 @@ TEST(fcntl_getfl, testRemembersAccessMode) {
|
|||
|
||||
TEST(fcntl_setfl, testChangeAppendStatus) {
|
||||
if (IsWindows()) {
|
||||
// no obivous way to do fcntl(fd, F_SETFL, O_APPEND)
|
||||
// no obvious way to do fcntl(fd, F_SETFL, O_APPEND)
|
||||
return;
|
||||
}
|
||||
int fd;
|
||||
|
|
|
@ -606,7 +606,7 @@ BENCH(memcmp, bench) {
|
|||
volatile char *copy = gc(strdup(kHyperion));
|
||||
EZBENCH2("memcmp big", donothing,
|
||||
EXPROPRIATE(memcmp(kHyperion, copy, kHyperionSize)));
|
||||
copy = gc(strdup("tought little ship"));
|
||||
copy = gc(strdup("tough little ship"));
|
||||
EZBENCH2("memcmp 19", donothing,
|
||||
EXPROPRIATE(memcmp("tought little ship", copy, 19)));
|
||||
EXPROPRIATE(memcmp("tough little ship", copy, 19)));
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ TEST(ParseHttpRange, testInvalidRange) {
|
|||
EXPECT_EQ(0, length);
|
||||
}
|
||||
|
||||
TEST(ParseHttpRange, testOverflow_duringIntepretation_doesntSetRanges) {
|
||||
TEST(ParseHttpRange, testOverflow_duringInterpretation_doesntSetRanges) {
|
||||
long start, length;
|
||||
const char *s = "bytes=99-9223372036854775808";
|
||||
EXPECT_FALSE(ParseHttpRange(s, strlen(s), 100, &start, &length));
|
||||
|
|
|
@ -257,7 +257,7 @@ TEST(ParseUrl, testEmptyParams_absentCanBeDiscerned) {
|
|||
ASSERT_NE(NULL, h.params.p);
|
||||
}
|
||||
|
||||
TEST(ParseUrl, testWeirdAmps_areReprodicible) {
|
||||
TEST(ParseUrl, testWeirdAmps_areReproducible) {
|
||||
struct Url h;
|
||||
gc(ParseUrl("?&&", -1, &h));
|
||||
gc(h.params.p);
|
||||
|
|
|
@ -217,6 +217,6 @@
|
|||
(lambda (x)
|
||||
(lambda ()
|
||||
x))))))
|
||||
((error '(enclosed memory failed to propogate upward))))
|
||||
((error '(enclosed memory failed to propagate upward))))
|
||||
(ignore))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue