GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adicionando testes para velocidade escalar · pythonprobr/pythonbirds@0df5be7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • testes
    • atores_testes.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎testes/atores_testes.py‎

Copy file name to clipboardExpand all lines: testes/atores_testes.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ def assert_passaro_posicao(self, x_esperado, y_esperado, status_esperado, passar
115115

116116

117117
class PassaroVermelhoTests(PassaroBaseTests):
118+
def teste_velocidade_escalar(self):
119+
self.assertEqual(20, PassaroVermelho.velocidade_escalar)
120+
118121
def teste_foi_lancado(self):
119122
passaro_vermelho = PassaroVermelho(1, 1)
120123
self.assertFalse(passaro_vermelho.foi_lancado())
@@ -155,6 +158,9 @@ def teste_colisao(self):
155158

156159

157160
class PassaroAmareloTests(PassaroBaseTests):
161+
def teste_velocidade_escalar(self):
162+
self.assertEqual(30, PassaroAmarelo.velocidade_escalar)
163+
158164
def teste_posicao_antes_do_lancamento(self):
159165
passaro_amarelo = PassaroAmarelo(1, 1)
160166
passaro_amarelo.lancar(90, 2) # passaro lancado a 90 graus no tempo 2 segundos

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.