Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestCut (0.13 sec)

  1. src/bytes/bytes_test.go

    	{"abc", "c", "ab", "", true},
    	{"abc", "abc", "", "", true},
    	{"abc", "", "", "abc", true},
    	{"abc", "d", "abc", "", false},
    	{"", "d", "", "", false},
    	{"", "", "", "", true},
    }
    
    func TestCut(t *testing.T) {
    	for _, tt := range cutTests {
    		if before, after, found := Cut([]byte(tt.s), []byte(tt.sep)); string(before) != tt.before || string(after) != tt.after || found != tt.found {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java

        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(UnsupportedOperationException.class, () -> testInstance.clear());
        }
      }
    
      public final void testPut() {
        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(UnsupportedOperationException.class, () -> testInstance.put('a', 1, "blah"));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      @Override
      public void testNullPointerInstance() {}
    
      // put() and putAll() aren't supported.
      @Override
      public void testPut() {
        assertThrows(UnsupportedOperationException.class, () -> table.put("foo", 1, 'a'));
        assertSize(0);
      }
    
      @Override
      public void testPutAllTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          assertThrows(UnsupportedOperationException.class, () -> table.clear());
        }
      }
    
      public void testPut() {
        assertNull(table.put("foo", 1, cellValue('a')));
        assertNull(table.put("bar", 1, cellValue('b')));
        assertNull(table.put("foo", 3, cellValue('c')));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testContainsValue() {
        boolean unused = create().containsValue(null);
      }
    
      public void testGet() {
        create().get(null);
      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = 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)
  6. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testContainsValue() {
        boolean unused = create().containsValue(null);
      }
    
      public void testGet() {
        create().get(null);
      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = 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)
  7. guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          assertThrows(UnsupportedOperationException.class, () -> table.clear());
        }
      }
    
      public void testPut() {
        assertNull(table.put("foo", 1, cellValue('a')));
        assertNull(table.put("bar", 1, cellValue('b')));
        assertNull(table.put("foo", 3, cellValue('c')));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/asm.go

    				return
    			}
    			p.labels[label] = prog
    		}
    		p.pendingLabels = p.pendingLabels[0:0]
    	}
    	prog.Pc = p.pc
    	if *flags.Debug {
    		fmt.Println(p.lineNum, prog)
    	}
    	if testOut != nil {
    		fmt.Fprintln(testOut, prog)
    	}
    }
    
    // validSymbol checks that addr represents a valid name for a pseudo-op.
    func (p *Parser) validSymbol(pseudo string, addr *obj.Addr, offsetOk bool) bool {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 21 14:11:44 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top