Home
last modified time | relevance | path

Searched refs:sampleValue (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DFieldCodecTest.cs112 private readonly T sampleValue; field in Google.Protobuf.FieldCodecTest.FieldCodecTestData
115 public FieldCodecTestData(FieldCodec<T> codec, T sampleValue, string name) in FieldCodecTestData() argument
118 this.sampleValue = sampleValue; in FieldCodecTestData()
126 codec.ValueWriter(codedOutput, sampleValue); in TestRoundTripRaw()
130 Assert.AreEqual(sampleValue, codec.ValueReader(codedInput)); in TestRoundTripRaw()
138 codec.WriteTagAndValue(codedOutput, sampleValue); in TestRoundTripWithTag()
143 Assert.AreEqual(sampleValue, codec.Read(codedInput)); in TestRoundTripWithTag()
151 codec.WriteTagAndValue(codedOutput, sampleValue); in TestCalculateSizeWithTag()
153 Assert.AreEqual(stream.Position, codec.CalculateSizeWithTag(sampleValue)); in TestCalculateSizeWithTag()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DUnmodifiableCollectionTests.java270 Multimap<K, V> multimap, final K sampleKey, final V sampleValue) { in assertMultimapIsUnmodifiable() argument
276 Collection<V> sampleValueAsCollection = Collections.singleton(sampleValue); in assertMultimapIsUnmodifiable()
299 assertCollectionIsUnmodifiable(values, sampleValue); in assertMultimapIsUnmodifiable()
305 Maps.immutableEntry(sampleKey, sampleValue)); in assertMultimapIsUnmodifiable()
325 assertCollectionIsUnmodifiable(multimap.get(key), sampleValue); in assertMultimapIsUnmodifiable() local
331 multimap.put(sampleKey, sampleValue); in assertMultimapIsUnmodifiable()
347 multimap2.put(sampleKey, sampleValue); in assertMultimapIsUnmodifiable()
357 multimap.remove(sampleKey, sampleValue); in assertMultimapIsUnmodifiable()
390 multimap.asMap().get(presentKey).remove(sampleValue); in assertMultimapIsUnmodifiable()
397 multimap.asMap().values().iterator().next().remove(sampleValue); in assertMultimapIsUnmodifiable()
[all …]
/external/icu/icu4c/source/i18n/
Dplurrule.cpp338 double sampleValue = fixed.source; in getSamplesFromString() local
339 if (fixed.visibleDecimalDigitCount == 0 || sampleValue != floor(sampleValue)) { in getSamplesFromString()
340 dest[sampleCount++] = sampleValue; in getSamplesFromString()
372 double sampleValue = n/scale; in getSamplesFromString() local
373 if (!(sampleValue == floor(sampleValue) && fixedLo.visibleDecimalDigitCount > 0)) { in getSamplesFromString()
374 dest[sampleCount++] = sampleValue; in getSamplesFromString()
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckExemplars.java270 String sampleValue = oparts.getAttributeValue(-1, "sample"); in checkParse() local
271 if (!us.contains(sampleValue)) { in checkParse()
275 .setMessage("ParseLenient sample not in value: {0} ∌ {1}", us, sampleValue); in checkParse()