~sircmpwn/hare-dev

hare: bytes, strings: drop non-constant assertion messages v1 PROPOSED

Drew DeVault: 1
 bytes, strings: drop non-constant assertion messages

 2 files changed, 8 insertions(+), 8 deletions(-)
#1398540 alpine.yml success
#1398541 freebsd.yml success
#1398542 netbsd.yml success
#1398543 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/56683/mbox | git am -3
Learn more about email & git

[PATCH hare] bytes, strings: drop non-constant assertion messages Export this patch

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
 bytes/tokenize.ha   | 8 ++++----
 strings/tokenize.ha | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/bytes/tokenize.ha b/bytes/tokenize.ha
index 703e9ef8..c569a760 100644
--- a/bytes/tokenize.ha
@@ -164,16 +164,16 @@ fn tokenize_test(

		const p = peek_token(&tok) as []u8;
		const n = next_token(&tok) as []u8;
		assert(equal(p, n), testcase);
		assert(equal(n, want), testcase);
		assert(equal(p, n));
		assert(equal(n, want));
	};

	if (n >= iters) {
		return tok;
	};

	assert(peek_token(&tok) is done, testcase);
	assert(next_token(&tok) is done, testcase);
	assert(peek_token(&tok) is done);
	assert(next_token(&tok) is done);
	return tok;
};

diff --git a/strings/tokenize.ha b/strings/tokenize.ha
index 03b76f77..3e4a4eac 100644
--- a/strings/tokenize.ha
+++ b/strings/tokenize.ha
@@ -95,16 +95,16 @@ fn tokenize_test(

		const p = peek_token(&tok) as str;
		const n = next_token(&tok) as str;
		assert(p == n, testcase);
		assert(n == want, testcase);
		assert(p == n);
		assert(n == want);
	};

	if (n >= iters) {
		return tok;
	};

	assert(peek_token(&tok) is done, testcase);
	assert(next_token(&tok) is done, testcase);
	assert(peek_token(&tok) is done);
	assert(next_token(&tok) is done);
	return tok;
};

-- 
2.47.1
hare/patches: SUCCESS in 1m13s

[bytes, strings: drop non-constant assertion messages][0] from [Drew DeVault][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/56683
[1]: mailto:sir@cmpwn.com

✓ #1398543 SUCCESS hare/patches/openbsd.yml https://builds.sr.ht/~sircmpwn/job/1398543
✓ #1398540 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/1398540
✓ #1398541 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/1398541
✓ #1398542 SUCCESS hare/patches/netbsd.yml  https://builds.sr.ht/~sircmpwn/job/1398542