Slide 1

Slide 1 text

Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ιʔείʔυ͔ΒಡΈղ͘ 2VJDL͸ͲͷΑ͏ʹ ࣮૷͞Ε͍ͯΔͷ͔ʁ 1 Զίϯ 2018 Summer / Day. 1 2018/09/12 (Wed) 
 ࡉপ ༞հ@DeNA

Slide 2

Slide 2 text

"CPVU 2 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 3

Slide 3 text

:VTVLF)PTPOVNB • ॴଐ ⁃ %F/"ɹ48&5άϧʔϓɹςετج൫νʔϜ • 'BWPSJUF ⁃ • ۙگ ⁃ J04%$Ͱ෼ൃද ⁃ ੔ମ͸͍͍ͧʂ Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 3 @tobi462ʢτϏʣ Swift 4.2

Slide 4

Slide 4 text

:VTVLF)PTPOVNB • ॴଐ ⁃ %F/"ɹ48&5άϧʔϓɹςετج൫νʔϜ • 'BWPSJUF ⁃ • ۙگ ⁃ J04%$Ͱ෼ൃද ⁃ ੔ମ͸͍͍ͧʂ Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 4 @tobi462ʢτϏʣ Swift 4.2 ݄ࠒʹ։࠵ʁ

Slide 5

Slide 5 text

Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 5 $G1ݕࡧαʔϏε ϖϯΪϯଜ5FDIͰ࡞Γ·ͨ͠ʂ ൃදεϥΠυ΁ͷϦϯΫ

Slide 6

Slide 6 text

Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 6 $G1ݕࡧαʔϏε ϖϯΪϯଜ5FDIͰ࡞Γ·ͨ͠ʂ ൃදεϥΠυ΁ͷϦϯΫ iosdc-cfps.penginmura.tech

Slide 7

Slide 7 text

2VJDL 7 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 8

Slide 8 text

8 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. #%%ϑϨʔϜϫʔΫ 4XJGUൃදͷ೔ޙʹ044ެ։ 9$5FTUͱ౷߹ • ςετφϏήʔλͰදࣔ • Τϥʔϝοηʔδ΋ͪΌΜͱग़Δ Quick 34QFDΠϯεύΠΞ

Slide 9

Slide 9 text

/JNCMF 9 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 10

Slide 10 text

Nimble 10 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ΞαʔγϣϯϥΠϒϥϦ .BUIDFS"1* 2VJDL͔Β͸ಠཱ Nimble

Slide 11

Slide 11 text

11 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } }

Slide 12

Slide 12 text

12 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ςετߏ଄Խͱͯ͠ͷ2VJDL

Slide 13

Slide 13 text

13 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } Ξαʔγϣϯͱͯ͠ͷ/JNCMF

Slide 14

Slide 14 text

14 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Xcode

Slide 15

Slide 15 text

15 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. φϏήʔλʹදࣔ Xcode

Slide 16

Slide 16 text

16 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ςετͱͯ͠ೝࣝ Xcode

Slide 17

Slide 17 text

17 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Τϥʔ͕ΤσΟλʹදࣔ Xcode Quick ͸Α͘Ͱ͖ͯΔͳ͊ Swift ΫϩʔδϟʹΑΔ DSL ΋ૉఢͩ

Slide 18

Slide 18 text

ͱ͜ΖͰ 18 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 19

Slide 19 text

19 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Α͘ߟ͑ͯΈΔͱ Ͳ͏΍࣮ͬͯݱ͞ΕͯΔΜͩΖ͏ʁ ͋ΒͨΊͯݟͯΈΔ

Slide 20

Slide 20 text

20 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 21

Slide 21 text

21 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͳͥφϏήʔλʹJUʹରԠ͢Δ໊લ͕ʁ

Slide 22

Slide 22 text

22 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. UFTU9YYͬͯϝιου໊͡Όͳ͍͚Ͳʁ

Slide 23

Slide 23 text

23 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ؔ਺ͳͷʹͲ͏΍ͬͯ%4-ߏ଄Λอ࣋ʁ

Slide 24

Slide 24 text

24 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Τϥʔ΋Ͳ͏΍ͬͯग़ͯ͠ΔΜͩʁ

Slide 25

Slide 25 text

25 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Τϥʔ΋Ͳ͏΍ͬͯग़ͯ͠ΔΜͩʁ ෼͔Βͳ͍ Զͨͪ͸งғؾͰ Quick Λॻ͍͍ͯΔ

Slide 26

Slide 26 text

5PEBZ 26 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 27

Slide 27 text

࿩͢͜ͱ 27 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 2VJDL͕Ͳ͏΍࣮ͬͯݱ͞ΕͯΔ͔ʁ • 9$5FTUͱͷ౷߹ • %4- ࿩͞ͳ͍͜ͱ 2VJDL/JNCMFͷ࢖͍ํ /JNCMFͷ࢓૊Έ ϚϧνϓϥοτϑΥʔϜରԠͱ͔ Today ίʔυΛಡΈͭͭʂ ࡉ͔͍ͱ͜Ζ͸ׂѪ͍ͯ͘͠ʂ

Slide 28

Slide 28 text

28 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ίʔυϦʔσΟϯά͍ͯ͘͠ͱ͜Ζ ΤϯτϦϙΠϯτ %4-͔Βͷߏ଄ͷ૊Έཱͯ 9$5FTU͔Βͷݺͼग़͠

Slide 29

Slide 29 text

29 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ίʔυϦʔσΟϯά͍ͯ͘͠ͱ͜Ζ ΤϯτϦϙΠϯτ %4-͔Βͷߏ଄ͷ૊Έཱͯ 9$5FTU͔Βͷݺͼग़͠ Let’s Code Reading !

Slide 30

Slide 30 text

ϥΠϒϥϦͷؔ܎ 30 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 31

Slide 31 text

31 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 2VJDL /JNCMF 9$5FTU 'PVOEBUJPO 0CKFDUJWF$3VOUJNFΛར༻ ར༻͸೚ҙ ϥΠϒϥϦͷؔ܎

Slide 32

Slide 32 text

32 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 2VJDL /JNCMF 9$5FTU 'PVOEBUJPO ࠓ͔Βݟ͍ͯ͘ ϥΠϒϥϦͷؔ܎

Slide 33

Slide 33 text

ΤϯτϦϙΠϯτ 33 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 34

Slide 34 text

34 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } }

Slide 35

Slide 35 text

35 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ࠓճͷαϯϓϧͷ4QFD

Slide 36

Slide 36 text

36 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } Ͳ͔͜Βݺ͹Ε͍ͯΔ͔ʁ

Slide 37

Slide 37 text

37 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. import XCTest import Quick import Nimble class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ਌ΫϥεΛݟͯΈΔ

Slide 38

Slide 38 text

38 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. #import @interface QuickSpec : XCTestCase - (void)spec; @property (class, nonatomic, readonly) QuickSpec *current; @end QuickSpec.h

Slide 39

Slide 39 text

39 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. #import @interface QuickSpec : XCTestCase - (void)spec; @property (class, nonatomic, readonly) QuickSpec *current; @end QuickSpec.h ͍͖ͳΓ Objective-C ʂ Ͱ΋ɺ਺গͳ͍͏ͪͷ1ιʔε

Slide 40

Slide 40 text

40 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.h #import @interface QuickSpec : XCTestCase - (void)spec; @property (class, nonatomic, readonly) QuickSpec *current; @end 9$5FTU$BTFΛܧঝ͍ͯ͠Δ QuickSpec.h

Slide 41

Slide 41 text

41 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.m @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } QuickSpec.m

Slide 42

Slide 42 text

42 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.m @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } 0CKFDUJWF$3VOUJNFʹΫϥε͕ ϩʔυ͞Εͨͱ͖ʹݺͼग़͞ΕΔ QuickSpec.m

Slide 43

Slide 43 text

43 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.m @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } 8PSMEͷ4JOHMFUPOΛऔಘ͠ ΫϩʔδϟΛ࣮ߦ͠Α͏ͱ͍ͯ͠Δ QuickSpec.m

Slide 44

Slide 44 text

44 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.m @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } ͜͜Ͱࣗ਎ͷΠϯελϯεΛੜ੒ͯ͠ TQFDΛ࣮ߦ͍ͯ͠Δʂ QuickSpec.m

Slide 45

Slide 45 text

45 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // QuickSpec.m @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } ͜͜Ͱࣗ਎ͷΠϯελϯεΛੜ੒ͯ͠ TQFDΛ࣮ߦ͍ͯ͠Δʂ QuickSpec.m spec ͕ݺ͹ΕΔ࢓૊Έ͸ ͳΜͱͳ͘Θ͔ͬͨͧʂ

Slide 46

Slide 46 text

46 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͜͜·Ͱग़͖ͯͨιʔε CalcSpec.swift QuickSpec.h / m

Slide 47

Slide 47 text

%4-ͷॲཧ 47 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 48

Slide 48 text

48 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift

Slide 49

Slide 49 text

49 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ߏ଄తʹ͸͜͏ͳͬͯΔ CalcSpec.swift beforeEach describe context it describe

Slide 50

Slide 50 text

50 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ߏ଄తʹ͸͜͏ͳͬͯΔ CalcSpec.swift beforeEach describe context it describe ॱ൪ʹݟ͍ͯ͘

Slide 51

Slide 51 text

51 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe

Slide 52

Slide 52 text

EFTDSJCF 52 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 53

Slide 53 text

53 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.describe(description, flags: flags, closure: closure) } public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.context(description, flags: flags, closure: closure) } public func beforeEach(_ closure: @escaping BeforeExampleClosure) { World.sharedWorld.beforeEach(closure) } DSL.swift

Slide 54

Slide 54 text

54 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.describe(description, flags: flags, closure: closure) } public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.context(description, flags: flags, closure: closure) } public func beforeEach(_ closure: @escaping BeforeExampleClosure) { World.sharedWorld.beforeEach(closure) } ... 8PSMEͷγϯάϧτϯʹରͯ͠ ҕৡ͍ͯ͠Δ͚ͩ DSL.swift

Slide 55

Slide 55 text

55 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } World+DSL.swift

Slide 56

Slide 56 text

56 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } 8PSMEͷFYUFOTJPO World+DSL.swift

Slide 57

Slide 57 text

57 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } &YBNQMF(SPVQΛੜ੒ͯ͠ World+DSL.swift

Slide 58

Slide 58 text

58 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } ݱࡏͷ&YBNQMF(SPVQʹ௥Ճ͠ World+DSL.swift

Slide 59

Slide 59 text

59 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } ΫϩʔδϟΛ౉࣮ͯ͠ߦ͍ͯ͠Δʂ World+DSL.swift

Slide 60

Slide 60 text

60 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } World.swift

Slide 61

Slide 61 text

61 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ୀආͯ͠ݱࡏͷ&YBNQMF(SPVQΛஔ͖׵͑ World.swift

Slide 62

Slide 62 text

62 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ΫϩʔδϟΛ࣮ߦ͠ World.swift

Slide 63

Slide 63 text

63 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ୀආͯͨ͠&YBNQMF(SPVQΛݩʹ໭͍ͯ͠Δ World.swift

Slide 64

Slide 64 text

64 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ୀආͯͨ͠&YBNQMF(SPVQΛݩʹ໭͍ͯ͠Δ World.swift closure ͬͯͳΜ͚ͩͬʁ ͦ͏͍͑͹

Slide 65

Slide 65 text

65 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World.swift final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } }

Slide 66

Slide 66 text

66 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World.swift final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } EFTDSJCFͷத਎ͩʂ

Slide 67

Slide 67 text

67 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World.swift final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } EFTDSJCFͷத਎ͩʂ ͳΜͱͳ͘ݟ͖͑ͯͨͧʂ

Slide 68

Slide 68 text

68 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͜͜·Ͱग़͖ͯͨιʔε CalcSpec.swift QuickSpec.h / m World+DSL.swift World.swift

Slide 69

Slide 69 text

CFGPSF&BDI 69 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 70

Slide 70 text

70 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe

Slide 71

Slide 71 text

71 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.describe(description, flags: flags, closure: closure) } public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.context(description, flags: flags, closure: closure) } public func beforeEach(_ closure: @escaping BeforeExampleClosure) { World.sharedWorld.beforeEach(closure) } DSL.swift

Slide 72

Slide 72 text

72 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.describe(description, flags: flags, closure: closure) } public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.context(description, flags: flags, closure: closure) } public func beforeEach(_ closure: @escaping BeforeExampleClosure) { World.sharedWorld.beforeEach(closure) } DSL.swift ΍͸Γ8PSMEͷγϯάϧτϯʹରͯ͠ Ҡৡ͍ͯ͠Δ͚ͩ

Slide 73

Slide 73 text

73 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func describe(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.describe(description, flags: flags, closure: closure) } public func context(_ description: String, flags: FilterFlags = [:], closure: () -> Void) { World.sharedWorld.context(description, flags: flags, closure: closure) } public func beforeEach(_ closure: @escaping BeforeExampleClosure) { World.sharedWorld.beforeEach(closure) } DSL.swift ΍͸Γ8PSMEͷγϯάϧτϯʹରͯ͠ Ҡৡ͍ͯ͠Δ͚ͩ DSL ෦෼͸ શ෦͜ͷ࢓૊ͬΆ͍ͧʁ

Slide 74

Slide 74 text

74 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } World+DSL.swift

Slide 75

Slide 75 text

75 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } ݱࡏͷ&YBNQMF(SPVQͷ World+DSL.swift

Slide 76

Slide 76 text

76 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } IPPLTʹΫϩʔδϟΛ௥Ճͯ͠Δ World+DSL.swift

Slide 77

Slide 77 text

77 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // ExampleGroup.swift final public class ExampleGroup: NSObject { internal let hooks = ExampleHooks() } // ExampleHooks.swift final internal class ExampleHooks { internal var befores: [BeforeExampleWithMetadataClosure] = [] internal func appendBefore(_ closure: @escaping BeforeExampleClosure) { befores.append { (_: ExampleMetadata) in closure() } } } ExampleGroup.swift / ExampleHooks.swift

Slide 78

Slide 78 text

78 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // ExampleGroup.swift final public class ExampleGroup: NSObject { internal let hooks = ExampleHooks() } // ExampleHooks.swift final internal class ExampleHooks { internal var befores: [BeforeExampleWithMetadataClosure] = [] internal func appendBefore(_ closure: @escaping BeforeExampleClosure) { befores.append { (_: ExampleMetadata) in closure() } } } ExampleGroup.swift / ExampleHooks.swift

Slide 79

Slide 79 text

79 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // ExampleGroup.swift final public class ExampleGroup: NSObject { internal let hooks = ExampleHooks() } // ExampleHooks.swift final internal class ExampleHooks { internal var befores: [BeforeExampleWithMetadataClosure] = [] internal func appendBefore(_ closure: @escaping BeforeExampleClosure) { befores.append { (_: ExampleMetadata) in closure() } } } ഑ྻʹΫϩʔδϟΛBQQFOEͯ͠Δ ExampleGroup.swift / ExampleHooks.swift

Slide 80

Slide 80 text

80 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // ExampleGroup.swift final public class ExampleGroup: NSObject { internal let hooks = ExampleHooks() } // ExampleHooks.swift final internal class ExampleHooks { internal var befores: [BeforeExampleWithMetadataClosure] = [] internal func appendBefore(_ closure: @escaping BeforeExampleClosure) { befores.append { (_: ExampleMetadata) in closure() } } } ഑ྻʹΫϩʔδϟΛBQQFOEͯ͠Δ ExampleGroup.swift / ExampleHooks.swift currentExampleGropup ͕ ͳΜ͔ͩϙΠϯτΈ͍ͨͧʁ

Slide 81

Slide 81 text

81 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } World+DSL.swift

Slide 82

Slide 82 text

82 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // World.swift final internal class World: _WorldBase { internal var currentExampleGroup: ExampleGroup! internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } World+DSL.swift / World.swift

Slide 83

Slide 83 text

83 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // World.swift final internal class World: _WorldBase { internal var currentExampleGroup: ExampleGroup! internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } 8PSME͕͍࣋ͬͯͯ World+DSL.swift / World.swift

Slide 84

Slide 84 text

84 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // World.swift final internal class World: _WorldBase { internal var currentExampleGroup: ExampleGroup! internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ͖ͬ͞Ұ࣌ୀආͯͨ͠΍ͭͩʂ World+DSL.swift / World.swift

Slide 85

Slide 85 text

85 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func beforeEach(_ closure: @escaping BeforeExampleClosure) { guard currentExampleMetadata == nil else { raiseError("...") } currentExampleGroup.hooks.appendBefore(closure) } } // World.swift final internal class World: _WorldBase { internal var currentExampleGroup: ExampleGroup! internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } ͖ͬ͞Ұ࣌ୀආͯͨ͠΍ͭͩʂ World+DSL.swift / World.swift ͳΜ͔ͩͭͳ͕͖ͬͯͨͧʁ

Slide 86

Slide 86 text

86 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͜͜·Ͱग़͖ͯͨιʔε CalcSpec.swift QuickSpec.h / m World+DSL.swift World.swift ExampleGroup.swift ExampleHooks.swift

Slide 87

Slide 87 text

EFTDSJCF 87 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ࠶ͼ

Slide 88

Slide 88 text

88 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ͖ͬ͞ݟͨ΍ͭ

Slide 89

Slide 89 text

89 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } ࠶ܝ World+DSL.swift

Slide 90

Slide 90 text

90 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } ৽͍͠&YBNQMF(SPVQΛੜ੒ͯ͠ ݱࡏͷ&YBNQMF(SPVQʹ௥Ճ World+DSL.swift

Slide 91

Slide 91 text

91 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } ৽͍͠&YBNQMF(SPVQΛੜ੒ͯ͠ ݱࡏͷ&YBNQMF(SPVQʹ௥Ճ World+DSL.swift ExampleGroup ͬͯ describe ͷ͜ͱͰ͸ʁ

Slide 92

Slide 92 text

92 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } }

Slide 93

Slide 93 text

93 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } lBEEz ੜ੒ͯ͠Δͷ͸ࠓճͷEFTDSJCFͰ

Slide 94

Slide 94 text

94 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } લճͷ͕DVSSFOU&YBNQMF(SPVQͰ

Slide 95

Slide 95 text

95 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ৽͍͠ͷΛ௥Ճͯ͠

Slide 96

Slide 96 text

96 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ΫϩʔδϟΛ౉ͯ͠ॲཧͯ͠Δʂ

Slide 97

Slide 97 text

97 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World+DSL.swift extension World { internal func describe(_ description: String, flags: FilterFlags, closure: () -> Void) { let group = ExampleGroup(description: description, flags: flags) currentExampleGroup.appendExampleGroup(group) performWithCurrentExampleGroup(group, closure: closure) } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ΫϩʔδϟΛ౉ͯ͠ॲཧͯ͠Δʂ DSL ߏ଄͕૊ΈཱͯΒΕΔ ࢓૊Έ͕ݟ͖͑ͯͨͧʂ

Slide 98

Slide 98 text

98 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } World.swift

Slide 99

Slide 99 text

99 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } ྫͷҰ࣌ୀආͯͨ͠ίʔυ World.swift

Slide 100

Slide 100 text

100 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } ͖ͬ͞࡞ͬͨ&YBNQMF(SPVQͱ த਎ͷΫϩʔδϟ͕Ҿ਺ʹ World.swift

Slide 101

Slide 101 text

101 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } World currentExampleGroup ݱࡏͷ&YBNQMF(SPVQΛ World.swift

Slide 102

Slide 102 text

102 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } World currentExampleGroup ৽͍͠ͷʹ੾Γସ͑ͯ World.swift

Slide 103

Slide 103 text

103 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } ΫϩʔδϟΛධՁ͠ World currentExampleGroup World.swift

Slide 104

Slide 104 text

104 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } World currentExampleGroup ݩʹ໭͍ͯ͠Δʂ World.swift

Slide 105

Slide 105 text

105 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World.swift final internal class World: _WorldBase { internal func performWithCurrentExampleGroup(_ group: ExampleGroup, closure: () -> Void) { let previousExampleGroup = currentExampleGroup currentExampleGroup = group closure() currentExampleGroup = previousExampleGroup } } class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } World currentExampleGroup ݩʹ໭͍ͯ͠Δʂ World.swift ͜Ε͕୯ͳΔؔ਺ʴΫϩʔδϟͰ ঢ়ଶΛอ࣋ͭͭ͠૊ΈཱͯΔ࢓૊Έ 8PSME͕ίϯςΩετΛ੾Γସ͍͑ͯ͘

Slide 106

Slide 106 text

106 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͜͜·Ͱग़͖ͯͨιʔε CalcSpec.swift QuickSpec.h / m World+DSL.swift World.swift ExampleGroup.swift ExampleHooks.swift

Slide 107

Slide 107 text

DPOUFYU 107 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 108

Slide 108 text

108 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe

Slide 109

Slide 109 text

109 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func context(_ description: String, flags: FilterFlags, closure: () -> Void) { guard currentExampleMetadata == nil else { raiseError("...") } self.describe(description, flags: flags, closure: closure) } } World+DSL.swift

Slide 110

Slide 110 text

110 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func context(_ description: String, flags: FilterFlags, closure: () -> Void) { guard currentExampleMetadata == nil else { raiseError("...") } self.describe(description, flags: flags, closure: closure) } } EFTDSJCFΛݺΜͰΔ͚ͩ World+DSL.swift

Slide 111

Slide 111 text

111 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { internal func context(_ description: String, flags: FilterFlags, closure: () -> Void) { guard currentExampleMetadata == nil else { raiseError("...") } self.describe(description, flags: flags, closure: closure) } } EFTDSJCFΛݺΜͰΔ͚ͩ World+DSL.swift describe = context = ExampleGroup %4-ͱ໊ͯ͠લ͕ఏڙ͞Ε͍ͯΔ͚ͩ ࣮ଶ͸

Slide 112

Slide 112 text

JU 112 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. lͦΕz͕ݟ͑ͨΒɺऴΘΓɻ

Slide 113

Slide 113 text

113 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } ࠷ޙʂ CalcSpec.swift beforeEach describe context it describe

Slide 114

Slide 114 text

114 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func it(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { World.sharedWorld.it(description, flags: flags, file: file, line: line, closure: closure) } DSL.swift

Slide 115

Slide 115 text

115 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func it(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { World.sharedWorld.it(description, flags: flags, file: file, line: line, closure: closure) } ϚΫϩͰʮϑΝΠϧʯͱʮߦʯΛड͚औΓ DSL.swift

Slide 116

Slide 116 text

116 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. public func it(_ description: String, flags: FilterFlags = [:], file: String = #file, line: UInt = #line, closure: @escaping () -> Void) { World.sharedWorld.it(description, flags: flags, file: file, line: line, closure: closure) } ͍ͭ΋ͷΑ͏ʹ8PSMEʹҕৡ DSL.swift

Slide 117

Slide 117 text

117 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } World+DSL.swift

Slide 118

Slide 118 text

118 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } ϑΝΠϧͱߦΛߏ଄ମʹϥοϓ͠ World+DSL.swift

Slide 119

Slide 119 text

119 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } &YBNQMFΛੜ੒͠ World+DSL.swift

Slide 120

Slide 120 text

120 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } DVSSFOU&YBNQMF(SPVQʹ௥Ճ World+DSL.swift

Slide 121

Slide 121 text

121 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World+DSL.swift extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } DVSSFOU&YBNQMF(SPVQʹ௥Ճ Έͳ·Ͱݴ͏ͳ ΋͏෼͔͍ͬͯΔ

Slide 122

Slide 122 text

122 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. // World+DSL.swift extension World { @nonobjc internal func it(_ description: String, flags: FilterFlags, file: String, line: UInt, closure: @escaping () -> Void) { let callsite = Callsite(file: file, line: line) let example = Example(description: description, callsite: callsite, flags: flags, closure: closure) currentExampleGroup.appendExample(example) } } DVSSFOU&YBNQMF(SPVQʹ௥Ճ it = Example ͩʂ ಡΊΔɺಡΊΔͧʂ

Slide 123

Slide 123 text

%4-શମΛݟ௚͢ 123 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 124

Slide 124 text

124 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe

Slide 125

Slide 125 text

125 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ΦϒδΣΫτͷߏ଄͕ ݟ͖͑ͯͨͧ

Slide 126

Slide 126 text

126 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc EFTDSJCF͸&YBNQMF(SPVQ

Slide 127

Slide 127 text

127 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores

Slide 128

Slide 128 text

128 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores ExampleGroup: add

Slide 129

Slide 129 text

129 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores ExampleGroup: add ExampleGroup: 1 + 1 DPOUFYU΋&YBNQMF(SPVQ

Slide 130

Slide 130 text

130 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores ExampleGroup: add ExampleGroup: 1 + 1 Example: works JU͸&YBNQMF

Slide 131

Slide 131 text

131 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores ExampleGroup: add ExampleGroup: 1 + 1 Example: works CallSite (file, line) expect(calc.add(1, 1)).to(equal(2)) ϑΝΠϧɾߦɺΞαʔγϣϯίʔυΛ࣋ͭ

Slide 132

Slide 132 text

132 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift beforeEach describe context it describe ExampleGroup: calc hooks.befores ExampleGroup: add ExampleGroup: 1 + 1 Example: works CallSite (file, line) expect(calc.add(1, 1)).to(equal(2)) ϑΝΠϧɾߦɺΞαʔγϣϯίʔυΛ࣋ͭ Quick ͷ DSL ׬શʹཧղͨ͠

Slide 133

Slide 133 text

9$5FTU͔Βͷݺͼग़͠ 133 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 134

Slide 134 text

134 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift

Slide 135

Slide 135 text

135 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift %4-ͷΤϯτϦϙΠϯτҎ֎͸ఆ͍ٛͯ͠ͳ͍

Slide 136

Slide 136 text

136 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. class CalcSpec: QuickSpec { override func spec() { describe("calc") { var calc: Calc! beforeEach { calc = Calc() } describe("add") { context("1 + 1") { it("works") { expect(calc.add(1, 1)).to(equal(2)) } } } } } } CalcSpec.swift %4-ͷΤϯτϦϙΠϯτҎ֎͸ఆ͍ٛͯ͠ͳ͍ ΤϯτϦϙΠϯτʹ ൿີ͕͋Δʹҧ͍ͳ͍ ΋͏Ұ౓ݟͯΈΔ

Slide 137

Slide 137 text

137 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } QuickSpec.m

Slide 138

Slide 138 text

138 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } TQFD͕ݺ͹ΕͨޙͰ QuickSpec.m

Slide 139

Slide 139 text

139 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (void)initialize { [QuickConfiguration initialize]; World *world = [World sharedWorld]; [world performWithCurrentExampleGroup:[world rootExampleGroupForSpecClass:self] closure:^{ QuickSpec *spec = [self new]; @try { [spec spec]; } @catch (NSException *exception) { ... } [self testInvocations]; }]; } Կ͔ݺΜͰΔʂ QuickSpec.m

Slide 140

Slide 140 text

140 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } QuickSpec.m

Slide 141

Slide 141 text

141 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } JUʹରԠ͢Δ&YBNQMFΛநग़ͯ͠ QuickSpec.m

Slide 142

Slide 142 text

142 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } &YBNQMFΛΠϯελϯεϝιουʹ௥Ճͯ͠ QuickSpec.m

Slide 143

Slide 143 text

143 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } 4FMFDUPS͔Β/4*OWPDBUJPOΛੜ੒ͯ͠ QuickSpec.m

Slide 144

Slide 144 text

144 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } ͦͷҰཡΛฦͯ͠Δʂ QuickSpec.m

Slide 145

Slide 145 text

145 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } ͦͷҰཡΛฦͯ͠Δʂ QuickSpec.m Selector ͸෼͔Δ͚Ͳ NSInvocation ͬͯԿͩʁ TFMFDUPSͱ͔Ͱ

Slide 146

Slide 146 text

146 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. NSInvocation ϝοηʔδϯάΛදݱͨ͠ΦϒδΣΫτ 0CKFDUJWF$3VOUJNFݶఆͷػೳ ଞݴޠͰݴ͑͹ʮϦϑϨΫγϣϯʯʹ͍ۙ 0CKFDUJWF$ʹ͓͚Δϝιουݺͼग़͠

Slide 147

Slide 147 text

147 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. NSInvocation ϝοηʔδϯάΛදݱͨ͠ΦϒδΣΫτ 0CKFDUJWF$3VOUJNFݶఆͷػೳ ଞݴޠͰݴ͑͹ʮϦϑϨΫγϣϯʯʹ͍ۙ 0CKFDUJWF$ʹ͓͚Δϝιουݺͼग़͠ Dog walk(time: Time) NSInvocation XBML

Slide 148

Slide 148 text

148 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. NSInvocation ϝοηʔδϯάΛදݱͨ͠ΦϒδΣΫτ 0CKFDUJWF$3VOUJNFݶఆͷػೳ ଞݴޠͰݴ͑͹ʮϦϑϨΫγϣϯʯʹ͍ۙ 0CKFDUJWF$ʹ͓͚Δϝιουݺͼग़͠ Dog walk(time: Time) NSInvocation XBML ίϯύΠϧ࣌ʹ֬ఆͯ͠ͳ͍ ϝιου΋ಈతʹݺͼग़ͤΔʂ 0CKFDUJWF$Ͱ͸

Slide 149

Slide 149 text

149 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } QuickSpec.m

Slide 150

Slide 150 text

150 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } it("works") { expect(calc.add(1, 1)).to(equal(2)) } Example: works NSInvocation JUʹର͢Δݺͼग़͠Λੜ੒ͯ͠ฦͯ͠Δʂ QuickSpec.m

Slide 151

Slide 151 text

151 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. @implementation QuickSpec + (NSArray *)testInvocations { NSArray *examples = [[World sharedWorld] examplesForSpecClass:[self class]]; NSMutableArray *invocations = [NSMutableArray arrayWithCapacity:[examples count]]; NSMutableSet *selectorNames = [NSMutableSet set]; for (Example *example in examples) { SEL selector = [self addInstanceMethodForExample:example classSelectorNames:selectorNames]; NSMethodSignature *signature = [self instanceMethodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; invocation.selector = selector; [invocations addObject:invocation]; } return invocations; } it("works") { expect(calc.add(1, 1)).to(equal(2)) } Example: works NSInvocation JUʹର͢Δݺͼग़͠Λੜ੒ͯ͠ฦͯ͠Δʂ QuickSpec.m ͜Εͬͯ΋͔ͯ͠͠ ͋ͷҰཡʹରԠͯ͠Δʁ ͋Εʁ

Slide 152

Slide 152 text

152 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 153

Slide 153 text

153 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͋ͷҰཡ

Slide 154

Slide 154 text

154 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͋ͷҰཡ ࢼ͠ʹσόοάͯ͠ Selector ͷத਎Λ೷͍ͯΈΔ

Slide 155

Slide 155 text

155 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 156

Slide 156 text

156 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 157

Slide 157 text

157 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ׬શʹҰக

Slide 158

Slide 158 text

158 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. + (NSArray *)testInvocations Ͱ ςετର৅ͷҰཡΛฦͤΔ࢓૊Έ 9$5FTU͸

Slide 159

Slide 159 text

͜͜·ͰͷྲྀΕΛৼΓฦΔ 159 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 160

Slide 160 text

160 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 161

Slide 161 text

161 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ΫϥεϩʔυʹΑΓࣗ਎͕ੜ੒͞Εͯ

Slide 162

Slide 162 text

162 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. TQFD ͕ݺͼग़͞ΕΔ

Slide 163

Slide 163 text

163 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 8PSMEͰίϯςΩετΛҡ࣋ͭͭ͠ %4-ΛΦϒδΣΫτߏ଄ʹ૊Έཱͯ

Slide 164

Slide 164 text

164 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. &YBNQMFSVO΁ͷ/4*OWPDBUJPOΛ 9$5FTU͔ΒͷίʔϧόοΫͰฦ͢

Slide 165

Slide 165 text

165 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͦͷҰཡ͕9$5FTUʹΑΓ࣮ߦ͞Ε ςετ݁Ռ͕φϏήʔλʹදࣔ͞ΕΔ

Slide 166

Slide 166 text

166 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͦͷҰཡ͕9$5FTUʹΑΓ࣮ߦ͞Ε ςετ݁Ռ͕φϏήʔλʹදࣔ͞ΕΔ Quick ׬શʹཧղͨ͠

Slide 167

Slide 167 text

·ͱΊ 167 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.

Slide 168

Slide 168 text

168 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ·ͱΊ 2VJDL͕Ͳ͏ಈ͔͘ݟ͖ͯͨ • ΤϯτϦϙΠϯτ • %4-͔ΒΦϒδΣΫτߏ଄ͷੜ੒ • 9$5FTUʹςετର৅ҰཡΛ౉͢ 0CKFDUJWF$ϥϯλΠϜͷ׆༻ • Ϋϥεϩʔυ࣌ͷJOJUJBMJ[F • /4*OWPDBUJPOʹΑΔಈతϝοηʔδϯά 8PSME͕ίϯςΩετΛҡ࣋

Slide 169

Slide 169 text

169 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ·ͱΊ 2VJDL͕Ͳ͏ಈ͔͘ݟ͖ͯͨ • ΤϯτϦϙΠϯτɿTQFD • %4-͔ΒΦϒδΣΫτߏ଄ͷੜ੒ • 8PSMEΛ࢖ͬͨίϯςΩετҡ࣋ • 9$5FTUʹςετର৅ҰཡΛฦ͢ 0CKFDUJWF$ϥϯλΠϜͷ׆༻ • Ϋϥεϩʔυ࣌ͷJOJUJBMJ[F • /4*OWPDBUJPOʹΑΔಈతϝοηʔδϯά ͋ͳͨ΋ࠓ೔͔Β Quick ίϯτϦϏϡʔλ ࢲ΋

Slide 170

Slide 170 text

॓୊ 170 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ࢲ΋ͪΌΜͱ΍Γ·͢

Slide 171

Slide 171 text

171 Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ॓୊ &YBNQMF࣮ߦ࣌ʹCFGPSF&BDI͕ॲཧ͞ΕΔ࢓૊Έ • BGUFS&BDI͸ʁ • CFGPSF4VJUF͸ʁ ςετ໊͸Ͳ͜Ͱઃఆ͞Ε͍ͯΔʁ /JNCMFͷΤϥʔ͕ਖ਼͍͠Ґஔʹදࣔ͞ΕΔ࢓૊Έ

Slide 172

Slide 172 text

%JEZPVFOKPZ $PEFSFBEJOH 172 Copyright (C) DeNA Co.,Ltd. All Rights Reserved.