Skip to content

Commit

Permalink
fix: add missing test cases
Browse files Browse the repository at this point in the history
related to #101
  • Loading branch information
JeelRajodiya committed Oct 29, 2024
1 parent 31aa48c commit 3e59b20
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions content/04-Arrays/03-Tuple-Validation/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,57 @@ const testCases = [
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "A", "NW"],
address: [1600, "Pennsylvania", "Avenue", "NW"],
},
expected: false,
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Avenue", "NE"],
},
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Avenue", "SW"],
},
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Avenue", "SE"],
},
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Avenue", "SE"],
},
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Street", "SE"],
},
expected: true,
},
{
input: {
name: "John Doe",
age: 30,
address: [1600, "Pennsylvania", "Boulevard", "SE"],
},
expected: true,
},
{
input: {
Expand Down

0 comments on commit 3e59b20

Please sign in to comment.