Primera entrega: Implementación de analizador de fórmulas tipo Excel#8
Open
SantiagoAvila21 wants to merge 5 commits intoACMUD:masterfrom
Open
Primera entrega: Implementación de analizador de fórmulas tipo Excel#8SantiagoAvila21 wants to merge 5 commits intoACMUD:masterfrom
SantiagoAvila21 wants to merge 5 commits intoACMUD:masterfrom
Conversation
src/logic.py
Outdated
Comment on lines
1
to
3
| print("hola mnundo" \ | ||
| "hola mundo") | ||
| print("hola mundo") No newline at end of file |
Collaborator
There was a problem hiding this comment.
Creo que está mal etiquetado este commit.
src/logic.py
Outdated
Comment on lines
73
to
79
| # Parte para hacer el test | ||
| while True: | ||
| test = input("Ingrese su expresión a valorar (ej: =SUMA(1,A1,B2:B5)): ") | ||
| prueba = Logic(test) | ||
| prueba.clasificacionFun() | ||
| if prueba.value: | ||
| break |
Collaborator
There was a problem hiding this comment.
Si esto es un test, debe ir en tests, no en src, porque cuando sea importado el modulo se ejecutará este código, que adicionalmente es bloqueante.
Usa pytest para poder acceder facilmente a src.
from src.funciones import suma
def test_suma():
assert suma(1,2,3)==6y luego en terminal
pytest test/*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Esta es la primera entrega del proyecto, que consiste en la implementación de una clase Logic en Python que permite analizar expresiones similares a fórmulas de Excel. La clase identifica y extrae los siguientes componentes de una fórmula:
- Funciones (como SUMA, PROMEDIO, etc.)
- Constantes numéricas (enteros o decimales, positivos o negativos)
- Referencias individuales a celdas (como A1, B23)
- Rangos de celdas (como A1:B3)