Skip to content

Commit

Permalink
style: remove force unwrap comments
Browse files Browse the repository at this point in the history
This was already obvious from the context of the test code.
  • Loading branch information
elasticdog committed Aug 25, 2024
1 parent ea8d2ab commit 6e67eed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/theory/interval.zig
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ test "valid string formats" {
};

inline for (test_cases) |case| {
const expected = case[1] catch unreachable; // force unwrap
const expected = case[1] catch unreachable;
const result = try Interval.fromString(case[0]);
try testing.expectEqual(expected, result);
}
Expand Down Expand Up @@ -422,7 +422,7 @@ test "applying intervals" {
};

inline for (test_cases) |case| {
const interval = case[0] catch unreachable; // force unwrap
const interval = case[0] catch unreachable;
const result = try interval.applyToPitch(case[1]);
try testing.expectEqual(case[2], result);
}
Expand All @@ -449,7 +449,6 @@ test "interval inversion" {
};

inline for (test_cases) |case| {
// force unwrap
const interval = case[0] catch unreachable;
const expected = case[1] catch unreachable;

Expand All @@ -476,7 +475,7 @@ test "interval formatting" {
};

inline for (test_cases) |case| {
const interval = case[0] catch unreachable; // force unwrap
const interval = case[0] catch unreachable;
const exp_default = case[1];
const exp_short = case[2];
const exp_desc = case[3];
Expand Down

0 comments on commit 6e67eed

Please sign in to comment.