Skip to content

Commit

Permalink
Make it yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 21, 2022
1 parent 4f6636b commit a251669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/test_command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ pub const TestCommand = struct {

if (scanner.filter_names.len == 0 and test_files.len == 0) {
Output.prettyErrorln(
\\<b>0 tests found<r>! Tests need ".test", "_test_", ".spec" or "_spec_" in the filename <d>(ex: "MyApp.test.ts")<r>
\\<b><yellow>No tests found<r>! Tests need ".test", "_test_", ".spec" or "_spec_" in the filename <d>(ex: "MyApp.test.ts")<r>
\\
,
.{},
Expand Down
4 changes: 4 additions & 0 deletions src/string_immutable.zig
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,10 @@ pub fn hasPrefixComptime(self: string, comptime alt: anytype) bool {
return self.len >= alt.len and eqlComptimeCheckLenWithType(u8, self[0..alt.len], alt, false);
}

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

0 comments on commit a251669

Please sign in to comment.