anchor.diff:  
   // Error: Please make changes to use EnumClass.
   // TODO: Make field "yes" const. Make field "no" const. Make field "maybe" const.
  -''');
  +'''));
       });
   
       test('fails with error on non-const non-static fields', () async {
  -      await testGenerate(
  -          r'''
  +      expect(await generate(r'''
   library test_enum;
   
   import 'package:enum_class/enum_class.dart';
  
positive.code: 
  final BuiltSet<TestEnum> _$values =
      new BuiltSet<TestEnum>(const [_$no, _$maybe, _$yes,]);
  ''');
      });
  
      test('matches generated names to values and valueOf', () async {
        await testGenerate(
            r'''
  library test_enum;
  
  import 'package:enum_class/enum_class.dart';
  
negative.code:   static BuiltSet<TestEnum> get values => _$values;
    static TestEnum valueOf(String name) => _$valueOf(name);
  }
  '''), endsWith(r'''
  part of test_enum;
  
  // **************************************************************************
  