Skip to content

Commit a251669

Browse files
committed
Make it yellow
1 parent 4f6636b commit a251669

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/cli/test_command.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ pub const TestCommand = struct {
374374

375375
if (scanner.filter_names.len == 0 and test_files.len == 0) {
376376
Output.prettyErrorln(
377-
\\<b>0 tests found<r>! Tests need ".test", "_test_", ".spec" or "_spec_" in the filename <d>(ex: "MyApp.test.ts")<r>
377+
\\<b><yellow>No tests found<r>! Tests need ".test", "_test_", ".spec" or "_spec_" in the filename <d>(ex: "MyApp.test.ts")<r>
378378
\\
379379
,
380380
.{},

src/string_immutable.zig

+4
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,10 @@ pub fn hasPrefixComptime(self: string, comptime alt: anytype) bool {
652652
return self.len >= alt.len and eqlComptimeCheckLenWithType(u8, self[0..alt.len], alt, false);
653653
}
654654

655+
/// Check if two strings are equal with one of the strings being a comptime-known value
656+
///
657+
/// strings.eqlComptime(input, "hello world");
658+
/// strings.eqlComptime(input, "hai");
655659
pub inline fn eqlComptimeCheckLenWithType(comptime Type: type, a: []const Type, comptime b: anytype, comptime check_len: bool) bool {
656660
@setEvalBranchQuota(9999);
657661
if (comptime check_len) {

0 commit comments

Comments
 (0)