Skip to content

Commit

Permalink
Add test for Language.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed Sep 12, 2023
1 parent bfb3419 commit 783d26e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/native_toolchain_c/test/cbuilder/cbuilder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ import 'package:test/test.dart';
import '../helpers.dart';

void main() {
test('Langauge.toString', () {
expect(Language.c.toString(), 'c');
expect(Language.cpp.toString(), 'c++');
});

for (final pic in [null, true, false]) {
final picTag =
switch (pic) { null => 'auto_pic', true => 'pic', false => 'no_pic' };
Expand Down

0 comments on commit 783d26e

Please sign in to comment.