blob: 2d2398f9bf141368005f1c64d7e500c49546a9ea [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test/test.dart';
import '../out/protos/google/protobuf/unittest.pb.dart';
String constant() => 'SHOULD_BE_PRESENT';
Future<void> main() async {
test('enum name available depending on environment', () {
const bool.fromEnvironment('protobuf.omit_enum_names')
? ''
expect(constant(), 'SHOULD_BE_PRESENT');