Skip to content

Commit

Permalink
Merge pull request #339 from ivalkshfoeif/fix-for-issue-283
Browse files Browse the repository at this point in the history
Add tag to unit tests in Haiku and Wordle kata
  • Loading branch information
prathasirisha authored Sep 5, 2024
2 parents 484419f + d54b8f8 commit cfde17c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
import org.eclipse.collections.impl.factory.primitive.CharSets;
import org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class TextProcessorECTest
{
@Test
@Tag("KATA")
public void topLetters()
{
ListIterable<CharIntPair> top3 = new TextProcessorEC().topLetters();
Expand All @@ -37,6 +39,7 @@ public void topLetters()
}

@Test
@Tag("KATA")
public void distinctLetters()
{
String distinctLetters = new TextProcessorEC().distinctLetters();
Expand All @@ -45,6 +48,7 @@ public void distinctLetters()
}

@Test
@Tag("KATA")
public void duplicatesAndUnique()
{
Triple<CharBag, CharBag, CharSet> triple = new TextProcessorEC().duplicatesAndUnique();
Expand All @@ -54,6 +58,7 @@ public void duplicatesAndUnique()
}

@Test
@Tag("KATA")
public void topVowelAndConsonant()
{
CharCharPair vowelAndConsonant = new TextProcessorEC().topVowelAndConsonant();
Expand All @@ -63,6 +68,7 @@ public void topVowelAndConsonant()
}

@Test
@Tag("KATA")
public void findWordleWords()
{
MutableSet<String> wordleWords = new TextProcessorEC().findWordleWords();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
import java.util.Set;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class TextProcessorJDKTest
{
@Test
@Tag("KATA")
public void topLetters()
{
List<Map.Entry<Character, Long>> top3 = new TextProcessorJDK().topLetters();
Expand All @@ -31,6 +33,7 @@ public void topLetters()
}

@Test
@Tag("KATA")
public void distinctLetters()
{
String distinctLetters = new TextProcessorJDK().distinctLetters();
Expand All @@ -39,6 +42,7 @@ public void distinctLetters()
}

@Test
@Tag("KATA")
public void duplicatesAndUnique()
{
TextProcessorJDK.CharCountsDuplicatesUnique cdu = new TextProcessorJDK().duplicatesAndUnique();
Expand All @@ -48,6 +52,7 @@ public void duplicatesAndUnique()
}

@Test
@Tag("KATA")
public void topVowelAndConsonant()
{
TextProcessorJDK.TopVowelAndConsonant vowelAndConsonant = new TextProcessorJDK().topVowelAndConsonant();
Expand All @@ -57,6 +62,7 @@ public void topVowelAndConsonant()
}

@Test
@Tag("KATA")
public void findWordleWords()
{
Set<String> wordleWords = new TextProcessorJDK().findWordleWords();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
package org.eclipse.collections.wordlekata;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class WordleECTest
{
@Test
@Tag("KATA")
public void matchWordWithGuess()
{
Assertions.assertEquals(".....", new WordleEC("aaaaa").guess("bbbbb"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
package org.eclipse.collections.wordlekata;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class WordleJDKTest
{
@Test
@Tag("KATA")
public void matchWordWithGuess()
{
Assertions.assertEquals(".....", new WordleJDK("aaaaa").guess("bbbbb"));
Expand Down

0 comments on commit cfde17c

Please sign in to comment.