Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 134 for teststring (0.08 sec)

  1. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

        public void testBigDouble() throws Exception {
            assertEquals("12500000", BigDecimalConversionUtil.toBigDecimal(12500000D).toString());
        }
    
        /**
         * @throws Exception
         */
        public void testToString() throws Exception {
            final BigDecimal d = new BigDecimal(new BigInteger("125"), -1);
            assertEquals("1250", BigDecimalConversionUtil.toString(d));
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
      public void testHashCode() {
        int unused = create().hashCode();
      }
    
      public void testToString() {
        String unused = create().toString();
      }
    
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(create());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      }
    
      public void testCreateEmptyWithoutClassFails() {
        assertThrows(
            IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of()));
      }
    
      public void testToString() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.BLUE, 3);
        ms.add(Color.YELLOW, 1);
        ms.add(Color.RED, 2);
        assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/SourceSinkTester.java

              + "enim, at feugiat leo magna nec libero. Mauris quis odio eget nisl rutrum cursus nec "
              + "eget augue. Sed nec arcu sem. In hac habitasse platea dictumst.";
    
      static final ImmutableMap<String, String> TEST_STRINGS =
          ImmutableMap.<String, String>builder()
              .put("empty", "")
              .put("1 char", "0")
              .put("1 word", "hello")
              .put("2 words", "hello world")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 18:57:08 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. utils/utils_test.go

    			if out := AssertEqual(test.src, test.dst); test.out != out {
    				t.Errorf("AssertEqual(%v, %v) want: %t, got: %t", test.src, test.dst, test.out, out)
    			}
    		})
    	}
    }
    
    func TestToString(t *testing.T) {
    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    	}{
    		{"int", math.MaxInt64, "9223372036854775807"},
    		{"int8", int8(math.MaxInt8), "127"},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
        assertEquals(getMultiset().entrySet().toString(), getMultiset().toString());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        // Non-bracketed IPv6 fails.
        assertThrows(
            IllegalArgumentException.class,
            () -> HostAndPort.fromString("::1").requireBracketsForIPv6());
      }
    
      public void testToString() {
        // With ports.
        assertEquals("foo:101", "" + HostAndPort.fromString("foo:101"));
        assertEquals(":102", HostAndPort.fromString(":102").toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ByteSourceTester.java

      static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) {
        TestSuite suite = new TestSuite(name);
        for (Entry<String, String> entry : TEST_STRINGS.entrySet()) {
          if (testAsCharSource) {
            suite.addTest(suiteForString(factory, entry.getValue(), name, entry.getKey()));
          } else {
            suite.addTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
      public void testToString() {
        for (long value : TEST_LONGS) {
          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class);
      }
    
      public void testToString() {
        final Runnable[] currentTask = new Runnable[1];
        final Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                currentTask[0] = task;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top