Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Testing #15

Open
bedaHovorka opened this issue Jan 28, 2021 · 0 comments
Open

Unit Testing #15

bedaHovorka opened this issue Jan 28, 2021 · 0 comments

Comments

@bedaHovorka
Copy link

bedaHovorka commented Jan 28, 2021

Kvalitní SW je též třeba testovat. Proto je nutné též bývalým horníkum nabídnout podporu k získání dobrých programovacích návyků za pomoci knihovny PorubaUnit:

banik pyco

@ZkouskaJednotkova
parlamentniDivadylko() {
    toz Mikrofon mikrofon = zrob Microfon() pyco
    toz Nahoda nahoda = zrob Nahoda() pyco
    toz cyslo i = 0 pyco

    rubat (i < 500) {
        microfon.zapnuty = nahoda.dejDalsiBul() pyco
		
	kaj (microfon.zapnuty) { 
            toz Dryst dryst = toSeKurvaNepojebe { drystaniPredMicrofonem(mikrofon) } pyco

            tvrdimZe(dryst).seMusiKurvaRovnat("Hanzel desitka") pyco
        } boinak {
            ubaliFlakanecJakCyp { drystaniPredMicrofonem(mikrofon) } pyco
        }

        i = i + 1 pyco
    }
}

fajront pyco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@bedaHovorka and others