Polish a few tests in switch.zig

- Return `error.TestFailed` instead of panicing
- Use `comptime assert` for type checks so that errors surface at
  compile time
7cb227ab67John Schmidt committed on 2/8/2024, 10:49:03 PMparent0d1baf0
1 file changedLine totals unavailable