Skip to content

Commit d48b1e0

Browse files
committed
Update exercises and add .diffignore
1 parent 1495da4 commit d48b1e0

File tree

22 files changed

+1
-45
lines changed

22 files changed

+1
-45
lines changed

epicshop/.diffignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test.*

epicshop/post-set-playground.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,4 @@ for (const testFile of testFiles) {
3737
const dest = path.join(destDir, testFile)
3838

3939
fs.copyFileSync(src, dest)
40-
console.log(`✅ Copied ${testFile} from solution to playground`)
41-
}
42-
43-
if (testFiles.length > 0) {
44-
console.log(`\n📋 Copied ${testFiles.length} test file(s) to playground`)
4540
}

exercises/01.classes/01.problem.class-basics/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@
1818
// cart.addItem(laptop)
1919
// cart.addItem(mouse)
2020
// console.log(cart.getTotal())
21-
22-
export {}

exercises/01.classes/01.solution.class-basics/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ const cart = new ShoppingCart()
4040
cart.addItem(laptop)
4141
cart.addItem(mouse)
4242
console.log(`Cart total: $${cart.getTotal()}`)
43-
44-
export {}

exercises/01.classes/02.problem.constructors/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@
2323
// account.deposit(100)
2424
// const config = new Config()
2525
// const customConfig = new Config('example.com', 8080, true)
26-
27-
export {}

exercises/01.classes/02.solution.constructors/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ const config = new Config()
4444
const customConfig = new Config('example.com', 8080, true)
4545
console.log(`Default config: ${config.host}:${config.port}`)
4646
console.log(`Custom config: ${customConfig.host}:${customConfig.port}`)
47-
48-
export {}

exercises/02.access-modifiers/01.problem.public-private/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@
1313
// console.log(user.password) // ❌ Should error - password is private
1414
// console.log(user.login('secret123')) // ✅ Should return true
1515
// console.log(user.login('wrong')) // ✅ Should return false
16-
17-
export {}

exercises/02.access-modifiers/01.solution.public-private/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ console.log(user.username) // ✅ Works - username is public
1919
// console.log(user.password) // ❌ Error - password is private
2020
console.log(user.login('secret123')) // ✅ Returns true
2121
console.log(user.login('wrong')) // ✅ Returns false
22-
23-
export {}

exercises/02.access-modifiers/02.problem.protected/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@
1414
// console.log(car.getInfo()) // ✅ Should print "Toyota Camry"
1515
// console.log(car.make) // ❌ Should error - make is protected
1616
// console.log(car.model) // ❌ Should error - model is protected
17-
18-
export {}

exercises/02.access-modifiers/02.solution.protected/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ const car = new Car('Toyota', 'Camry')
2121
console.log(car.getInfo()) // ✅ Works - getInfo() is public
2222
// console.log(car.make) // ❌ Error - make is protected
2323
// console.log(car.model) // ❌ Error - model is protected
24-
25-
export {}

0 commit comments

Comments
 (0)