Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:josdem/algorithms-workshop into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
josdem committed Apr 10, 2024
2 parents 942ff76 + 40c3eab commit ca268c7
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 110 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
**.iml
**build
**.gradle/
**.DS_Store
4 changes: 2 additions & 2 deletions simple-algorithms/collection-sum/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ plugins {
id 'java'
}

def junitJupiterVersion = '5.7.0'
def junitJupiterVersion = '5.10.2'

group 'com.jos.dem.kata'
group 'com.josdem.kata'
version '1.0-SNAPSHOT'

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Empty file modified simple-algorithms/collection-sum/gradlew
100644 → 100755
Empty file.
Empty file modified simple-algorithms/collection-sum/gradlew.bat
100644 → 100755
Empty file.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.josdem.kata;

import java.util.List;

public class CollectionAdder {

public int sum(List<Integer> numbers) {
return numbers.size();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jos.dem.kata;
package com.josdem.kata;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand All @@ -7,9 +7,13 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

/*
Given an integer collection return a sum of its elements
*/

class CollectionAdderTest {

private CollectionAdder collectionAdder = new CollectionAdder();
private final CollectionAdder collectionAdder = new CollectionAdder();

@Test
@DisplayName("Accumulating a collection")
Expand Down
89 changes: 0 additions & 89 deletions simple-algorithms/count-bits/gradlew.bat

This file was deleted.

2 changes: 0 additions & 2 deletions simple-algorithms/count-bits/settings.gradle

This file was deleted.

0 comments on commit ca268c7

Please sign in to comment.