Skip to content

Commit

Permalink
Refactor: updated group name to convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaysir committed Mar 2, 2024
1 parent 05e6a6b commit 3c0433b
Show file tree
Hide file tree
Showing 125 changed files with 5 additions and 24 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions MusicBox/ViewController.swift

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions MusicBoxTests/MusicBoxUtilTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class MusicBoxUtilTests: XCTestCase {

XCTAssert(firstNote!.equalTo(rhs: Note(note: Scale.E, octave: 6)))
XCTAssert(secondNote.equalTo(rhs: Note(note: Scale.D_sharp, octave: 6)))
XCTAssert(beforeLastNote.equalTo(rhs: Note(note: Scale.F, octave: 3)))
XCTAssert(lastNote!.equalTo(rhs: Note(note: Scale.E, octave: 3)))
XCTAssert(beforeLastNote.equalTo(rhs: Note(note: Scale.C_sharp, octave: 3)))
XCTAssert(lastNote!.equalTo(rhs: Note(note: Scale.C, octave: 3)))
}

func test_getGridXFromGridBox() throws {
Expand Down
6 changes: 3 additions & 3 deletions MusicBoxTests/SwiftExtensionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class SwiftExtensionTests: XCTestCase {
var trueCountProb1 = 0

for _ in 1...totalCount {
trueCountProb0 += ChanceUtil.probability(_ probability: 0.0) ? 1 : 0
trueCountProb1 += ChanceUtil.probability(_ probability: 1.0) ? 1 : 0
trueCount += ChanceUtil.probability(_ probability: probability) ? 1 : 0
trueCountProb0 += ChanceUtil.probability(0.0) ? 1 : 0
trueCountProb1 += ChanceUtil.probability(1.0) ? 1 : 0
trueCount += ChanceUtil.probability(probability) ? 1 : 0
}

print(trueCount, totalCount, Double(trueCount) / Double(totalCount))
Expand Down

0 comments on commit 3c0433b

Please sign in to comment.