diff --git a/kniffel/inc/fullHouse.js b/kniffel/inc/fullHouse.js index 8491ce2..20bc6a7 100644 --- a/kniffel/inc/fullHouse.js +++ b/kniffel/inc/fullHouse.js @@ -11,3 +11,4 @@ function fullHouse(wuerfelArr){ return 0; } +module.exports = fullHouse; \ No newline at end of file diff --git a/kniffel/test/test_fullHouse.test.js b/kniffel/test/test_fullHouse.test.js new file mode 100644 index 0000000..5f98d00 --- /dev/null +++ b/kniffel/test/test_fullHouse.test.js @@ -0,0 +1,15 @@ +const fullHouse = require('../inc/fullHouse'); + + +//Eine Test Gruppe, mit mehreren Tests +describe('tests kniffel', () => { + + it('teste ob zwei und drei gleiche Augenzahlen existieren (Full House)', ()=>{ + + //Vergleiche Ist- und Sollergebnis + expect(fullHouse([2, 2, 3, 2, 3])).toBe(25); + + }); + + +})