package org.galobis.hanzi.model;

import static com.shazam.shazamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;

import org.junit.Test;

public class TextTest {

    @Test
    public void should_return_UNKNOWN_for_null_String() {
        assertThat(new Text(null).script(), is(equalTo(Script.UNKNOWN)));
    }
}

@@ -90,16 +90,55 @@
 rtThat;%0A
+import static java.util.Arrays.asList;%0A
 import s
@@ -174,16 +174,16 @@
 qualTo;%0A
-
 import s
@@ -321,30 +321,211 @@
 or_n
-ull_String() %7B%0A       
+on_Chinese_text() %7B%0A        asList(null, %22%22, %22 %22, %22%5Ct%22, %22%5Cn%22, %22ABC%22, %22%E3%80%82%22, %22.%22, %22%D1%80%D0%BE%D0%B1%D0%BE%D1%82%22, %22rob%C3%B4%22,%0A                %221234%22, %22%E3%83%AD%E3%83%9C%E3%83%83%E3%83%88%22, %22%EB%A1%9C%EB%B4%87%22, %22%CF%81%CE%BF%CE%BC%CF%80%CF%8C%CF%84%22, %22%E0%A4%B0%E0%A5%8B%E0%A4%AC%E0%A5%8B%E0%A4%9F%22).stream().forEach(%0A                        input -%3E
  ass
@@ -541,20 +541,21 @@
 ew Text(
-null
+input
 ).script
@@ -557,16 +557,48 @@
 cript(),
+%0A                               
  is(equa
@@ -618,16 +618,17 @@
 KNOWN)))
+)
 ;%0A    %7D%0A

Include additional test cases for UNKNOWN Script