summaryrefslogtreecommitdiff
path: root/src/Q1/ReversedSentenceTest.java
blob: 5317391b63994538aaefe6e5f42811d3d9e4e238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package ca.mokhan.test;

import Q1.*;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class ReversedSentenceTest extends TestCase {
  private ReversedSentence subject;

  public ReversedSentenceTest(String testName) {
    super(testName);
    this.subject = new ReversedSentence();
  }

  public static Test suite() {
    return new TestSuite(ReversedSentenceTest.class);
  }

  public void testTruthy() {
    assertEquals(true, true);
  }

  public void testReverseByCharacter() {
    assertEquals(
        "bmal elttil a dah yram", ReversedSentence.reverseByCharacter("mary had a little lamb"));
  }
}