- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,287 for enum_E (0.11 sec)
-
src/cmd/cgo/internal/test/test.go
} func testEnum(t *testing.T) { if C.Enum1 != 1 || C.Enum2 != 2 { t.Error("bad enum", C.Enum1, C.Enum2) } } func testNamedEnum(t *testing.T) { e := new(C.enum_E) *e = C.Enum1 if *e != 1 { t.Error("bad enum", C.Enum1) } *e = C.Enum2 if *e != 2 { t.Error("bad enum", C.Enum2) } } func testCastToEnum(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/EnumFromCharSequenceNotationParserSpec.groovy
def "can convert strings to enums using the enum value names"() { expect: TestEnum.ENUM1 == parser.parseNotation("ENUM1") TestEnum.ENUM1 == parser.parseNotation("enum1") TestEnum.ENUM1 == parser.parseNotation("EnUm1") TestEnum.ENUM2 == parser.parseNotation("enum2") TestEnum.ENUM3 == parser.parseNotation("enum3") TestEnum.ENUM_4_1 == parser.parseNotation("enum_4_1")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 11 23:49:44 UTC 2019 - 2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GUtilTest.groovy
} def "can convert strings to enums using the enum value names"() { expect: TestEnum.ENUM1 == toEnum(TestEnum, "ENUM1") TestEnum.ENUM1 == toEnum(TestEnum, "enum1") TestEnum.ENUM1 == toEnum(TestEnum, "EnUm1") TestEnum.ENUM2 == toEnum(TestEnum, "enum2") TestEnum.ENUM3 == toEnum(TestEnum, "enum3") TestEnum.ENUM_4_1 == toEnum(TestEnum, "enum_4_1")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 9.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Enums.java
* {@code enumClass} using {@link Enum#valueOf(Class, String)} and {@link Enum#name()}. The * converter will throw an {@code IllegalArgumentException} if the argument is not the name of any * enum constant in the specified enum. * * @since 16.0 */ @GwtIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Enums.java
* {@code enumClass} using {@link Enum#valueOf(Class, String)} and {@link Enum#name()}. The * converter will throw an {@code IllegalArgumentException} if the argument is not the name of any * enum constant in the specified enum. * * @since 16.0 */ @GwtIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/enums.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Oct 26 19:19:00 UTC 2022 - 327 bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} // Wrapper of EnumMultiset factory methods, because we need to skip create(Class). // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise. // For the same reason, we need to skip create(Iterable, Class). private static class EnumMultisetFactory { public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { return EnumMultiset.create(elements); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 26 16:35:21 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} // Wrapper of EnumMultiset factory methods, because we need to skip create(Class). // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise. // For the same reason, we need to skip create(Iterable, Class). private static class EnumMultisetFactory { public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) { return EnumMultiset.create(elements); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 26 16:35:21 UTC 2024 - 5.8K bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.txt
} public final enum class Direction { // source: 'classKinds.kt' private synthetic final static field $ENTRIES: kotlin.enums.EnumEntries private synthetic final static field $VALUES: Direction[] public final enum static field EAST: Direction public final enum static field NORTH: Direction public final enum static field SOUTH: Direction public final enum static field WEST: Direction
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Dec 21 15:34:34 UTC 2023 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0)