public void testConcat() { assertTrue(Arrays.equals(EMPTY, Chars.concat())); assertTrue(Arrays.equals(EMPTY, Chars.concat(EMPTY))); assertTrue(Arrays.equals(EMPTY, Chars.concat(EMPTY, EMPTY, EMPTY))); assertTrue(Arrays.equals(ARRAY1, Chars.concat(ARRAY1))); assertNotSame(ARRAY1, Chars.concat(ARRAY1)); assertTrue(Arrays.equals(ARRAY1, Chars.concat(EMPTY, ARRAY1, EMPTY))); assertTrue( Arrays.equals( new char[] {(char) 1, (char) 1, (char) 1}, Chars.concat(ARRAY1, ARRAY1, ARRAY1))); assertTrue( Arrays.equals( new char[] {(char) 1, (char) 2, (char) 3, (char) 4}, Chars.concat(ARRAY1, ARRAY234))); }
public char[] getPropertyReservedNamingFirstChars() { char[] reservedChars = anonymousFunctionNaming.getReservedCharacters(); if (polymerVersion != null && polymerVersion > 1) { if (reservedChars == null) { reservedChars = POLYMER_PROPERTY_RESERVED_FIRST_CHARS; } else { reservedChars = Chars.concat(reservedChars, POLYMER_PROPERTY_RESERVED_FIRST_CHARS); } } else if (angularPass) { if (reservedChars == null) { reservedChars = ANGULAR_PROPERTY_RESERVED_FIRST_CHARS; } else { reservedChars = Chars.concat(reservedChars, ANGULAR_PROPERTY_RESERVED_FIRST_CHARS); } } return reservedChars; }
public char[] getPropertyReservedNamingNonFirstChars() { char[] reservedChars = anonymousFunctionNaming.getReservedCharacters(); if (polymerVersion != null && polymerVersion > 1) { if (reservedChars == null) { reservedChars = POLYMER_PROPERTY_RESERVED_NON_FIRST_CHARS; } else { reservedChars = Chars.concat(reservedChars, POLYMER_PROPERTY_RESERVED_NON_FIRST_CHARS); } } return reservedChars; }
public void testConcat() { assertTrue(Arrays.equals(EMPTY, Chars.concat())); assertTrue(Arrays.equals(EMPTY, Chars.concat(EMPTY))); assertTrue(Arrays.equals(EMPTY, Chars.concat(EMPTY, EMPTY, EMPTY))); assertTrue(Arrays.equals(ARRAY1, Chars.concat(ARRAY1))); assertNotSame(ARRAY1, Chars.concat(ARRAY1)); assertTrue(Arrays.equals(ARRAY1, Chars.concat(EMPTY, ARRAY1, EMPTY))); assertTrue(Arrays.equals( new char[] {(char) 1, (char) 1, (char) 1}, Chars.concat(ARRAY1, ARRAY1, ARRAY1))); assertTrue(Arrays.equals( new char[] {(char) 1, (char) 2, (char) 3, (char) 4}, Chars.concat(ARRAY1, ARRAY234))); }