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 — Porco Ok · pythonprobr/pythonbirds@15c9c6c

File tree

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

‎atores.py‎

Copy file name to clipboardExpand all lines: atores.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class Obstaculo(Ator):
5252
_caracter_destruido = ' '
5353

5454

55+
class Porco(Ator):
56+
_caracter_ativo = '☺'
57+
58+
5559

5660

5761

Collapse file

‎testes/atores_testes.py‎

Copy file name to clipboardExpand all lines: testes/atores_testes.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import unicode_literals
44
from unittest.case import TestCase
5-
from atores import Ator, DESTRUIDO, ATIVO, Obstaculo
5+
from atores import Ator, DESTRUIDO, ATIVO, Obstaculo, Porco
66

77

88
def assert_ator_status(test_case, ator, caracter_status_ativo, carater_status_destruido):
@@ -65,7 +65,7 @@ def teste_nao_colisao_entre_atores_ativos(self):
6565

6666
def teste_colisao_somente_um_ator_destruido(self):
6767
ator = Ator(2, 2)
68-
ator.colidir(ator,0)
68+
ator.colidir(ator, 0)
6969
ator2 = Ator(2, 2)
7070
self.assert_nao_colisao(ator, ator2)
7171
self.assert_nao_colisao(Ator(2, 3), ator)
@@ -96,6 +96,7 @@ def teste_status(self):
9696
obstaculo = Obstaculo()
9797
assert_ator_status(self, obstaculo, 'O', ' ')
9898

99+
99100
class PorcoTestes(TestCase):
100101
def teste_status(self):
101102
porco = Porco()

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.