package seedu.task.model.util;

import seedu.task.commons.exceptions.IllegalValueException;
import seedu.task.model.ReadOnlyTaskList;
import seedu.task.model.TaskList;
import seedu.task.model.tag.UniqueTagList;
import seedu.task.model.task.Name;
import seedu.task.model.task.Task;
import seedu.task.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                    new Task(new Name("Alex Yeoh"), new UniqueTagList("friends")),
                    new Task(new Name("Bernice Yu"), new UniqueTagList("colleagues", "friends")),
                    new Task(new Name("Charlotte Oliveiro"), new UniqueTagList("neighbours")),
                    new Task(new Name("David Li"), new UniqueTagList("family")),
                    new Task(new Name("Irfan Ibrahim"), new UniqueTagList("classmates")),
                    new Task(new Name("Roy Balakrishnan"), new UniqueTagList("colleagues"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyTaskList getSampleTaskList() {
        try {
            TaskList sampleAB = new TaskList();
            for (Task sampleTask : getSampleTasks()) {
                sampleAB.addTask(sampleTask);
            }
            return sampleAB;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -471,36 +471,32 @@
                 
-    
 new Task(new Nam
@@ -534,36 +534,32 @@
 st(%22friends%22)),%0A
-    
                 
@@ -628,36 +628,32 @@
 %22, %22friends%22)),%0A
-    
                 
@@ -735,36 +735,32 @@
                 
-    
 new Task(new Nam
@@ -800,28 +800,24 @@
 %22family%22)),%0A
-    
             
@@ -886,28 +886,24 @@
 ssmates%22)),%0A
-    
             

fix indentations