From 08ba04236aac426691cfd1e0fc6b702642d47e8b Mon Sep 17 00:00:00 2001 From: silentsoft Date: Wed, 8 Sep 2021 11:20:10 +0900 Subject: [PATCH] Bump kit version from 1.1.1 to 1.1.2 Enhancements: - Update leetcode.com code template. - Add stopwatch dependency. --- CHANGELOG.md | 6 ++++++ README.md | 2 +- pom.xml | 2 +- templates/leetcode.com/java/SolutionTest.java | 11 +++++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52d7ff1..a408306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.1.2 (8 Sep 2021) + +## Enhancements +- Update `leetcode.com` code template. +- Add stopwatch dependency. + # 1.1.1 (6 Sep 2021) ## Enhancements diff --git a/README.md b/README.md index 011934c..98987dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Acmicpc Kit -![KitVersion](https://img.shields.io/badge/kit_version-v1.1.1-blue.svg) +![KitVersion](https://img.shields.io/badge/kit_version-v1.1.2-blue.svg) [![Hits](https://hits.sh/github.com/silentsoft/acmicpc-kit.svg)](https://hits.sh) > Let's practice algorithms with Acmicpc Kit ! diff --git a/pom.xml b/pom.xml index f3579c6..6678c19 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.silentsoft acmicpc-kit-parent - 1.1.1 + 1.1.2 org.silentsoft acmicpc-kit diff --git a/templates/leetcode.com/java/SolutionTest.java b/templates/leetcode.com/java/SolutionTest.java index a37bef2..1932bc4 100644 --- a/templates/leetcode.com/java/SolutionTest.java +++ b/templates/leetcode.com/java/SolutionTest.java @@ -1,5 +1,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import org.silentsoft.stopwatch.Stopwatch; class SolutionTest { @Test @@ -8,4 +9,14 @@ public void test() { //Assertions.assertEquals(/*expected*/, /*actual*/); //Assertions.assertArrayEquals(/*expected*/, /*actual*/); } + + @Test + public void speedTest() { + Solution solution = new Solution(); + Stopwatch stopwatch = new Stopwatch(); + stopwatch.start("speed test", () -> { + // + }); + stopwatch.print(); + } } \ No newline at end of file