Tes parameterized (data-driven) nglampahi logika tes sing sama karo macem-macem set input lan expected output — nyegah nyalin tes kanggo saben kasus. Padha ngadol gampang kanggo nuji akeh skenario (kalebu edge cases) kanthi singkat.
Masalah: tes sing duplikat
Without parameterization, testing many input/output cases means COPYING the test:
test('add 2+3', () => expect(add(2,3)).toBe(5));
test('add 0+0', () => expect(add(0,0)).toBe(0));
test('add -1+1', () => expect(add(-1,1)).toBe(0));
→ lots of near-identical, repetitive tests (tedious, hard to maintain)
