/*
 * Copyright 2017 MovingBlocks
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.terasology.rendering;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class FontColorTest {
	public static class isValid {
		
		@Test
		public void testResetColor() {
			char resetColor = 0xF000;
			assertTrue(FontColor.isValid(resetColor));
		}
		
		@Test
		public void testFirstColor() {
			char firstColor = 0xE000;
			assertTrue(FontColor.isValid(firstColor));
		}
		
		@Test
		public void testLastColor() {
			char lastColor = 0xEFFF;
			assertTrue(FontColor.isValid(lastColor));
		}
		
		@Test
		public void testBetweenColor() {
			char betweenColor = 0xEB8F;
			assertTrue(FontColor.isValid(betweenColor));
		}
		
		@Test
		public void testInvalidColor() {
			char invalidColor = 0xA10F;
			assertFalse(FontColor.isValid(invalidColor));
		}		
	}
}

@@ -772,51 +772,24 @@
  %7B%0A%09
-public static class isValid %7B%0A%09%09%0A%09%09
+%09%0A    
 @Test%0A
-%09%09
+    
 publ
@@ -811,27 +811,32 @@
 etColor() %7B%0A
-%09%09%09
+        
 char resetCo
@@ -845,27 +845,32 @@
 r = 0xF000;%0A
-%09%09%09
+        
 assertTrue(F
@@ -900,32 +900,34 @@
 olor));%0A
-%09%09%7D%0A%09%09%0A%09%09
+    %7D%0A%09%0A    
 @Test%0A
-%09
 %09public 
@@ -946,27 +946,32 @@
 stColor() %7B%0A
-%09%09%09
+        
 char firstCo
@@ -984,19 +984,24 @@
 0xE000;%0A
-%09%09%09
+        
 assertTr
@@ -1035,32 +1035,31 @@
 olor));%0A
-%09%09%7D%0A%09%09%0A%09
+    %7D%0A%09%0A
 %09@Test%0A
-%09
 %09public 
@@ -1077,27 +1077,32 @@
 stColor() %7B%0A
-%09%09%09
+        
 char lastCol
@@ -1114,19 +1114,24 @@
 0xEFFF;%0A
-%09%09%09
+        
 assertTr
@@ -1164,32 +1164,31 @@
 olor));%0A
-%09%09
+    
 %7D%0A%09
-%09
 %0A
-%09
 %09@Test%0A
-%09
 %09public 
@@ -1209,27 +1209,32 @@
 enColor() %7B%0A
-%09%09%09
+        
 char between
@@ -1249,19 +1249,24 @@
 0xEB8F;%0A
-%09%09%09
+        
 assertTr
@@ -1306,24 +1306,23 @@
 ));%0A
-%09%09%7D%0A%09%09%0A%09
+    %7D%0A%09%0A
 %09@Test%0A
-%09
 %09pub
@@ -1351,19 +1351,24 @@
 lor() %7B%0A
-%09%09%09
+        
 char inv
@@ -1391,11 +1391,16 @@
 0F;%0A
-%09%09%09
+        
 asse
@@ -1445,15 +1445,15 @@
 ));%0A
-%09%09%7D%09%09%0A%09%7D
+    %7D%09%09%09
 %0A%7D%0A

Update engine-tests/src/test/java/org/terasology/rendering/FontColorTest.java