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

Test with outputs #5

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Test with outputs #5

wants to merge 11 commits into from

Conversation

alexmdrake
Copy link
Collaborator

@alexmdrake alexmdrake commented Nov 28, 2023

no clue if this is idiomatic, down to chuck it or reproduce 400 of these.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is epic

Copy link
Owner

@vivianyyd vivianyyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swag

edit: actually I request some changes

import java.util.concurrent.TimeUnit

data class TestQuery(val functions:List<Func>, val names:List<String> , val query:Query){
val map: Map<String, Func>
Copy link
Owner

@vivianyyd vivianyyd Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this variable naming 🤣

import java.io.IOException
import java.util.concurrent.TimeUnit

data class TestQuery(val functions:List<Func>, val names:List<String> , val query:Query){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There aren't any examples of this constructor nor runTest being called, so I'm not totally sure if I have the right idea, but it seems to me like the values declared in files in examples/ get passed to TestQuery. In that case, it would make a lot of sense to make some interface I containing the list of functions, names, and query, so TestQuery can take an I as input, and all the stuff in each examples/ file can be wrapped in an object which implements I.
The syntax would be something like object ListQuery implements I { ... }

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 12 of ListQuery was supposed to be a testQuery instance with the functions, strings, et al in it(forgot to add&commit), can either go add or replace w/ this. This ^^ sounds like a more organized idea - I think the thought process was that TQ would only take in fields that were already universal & ready to go, and every example file would have a TQ that main had access to and called rT on.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either is fine I'd rather get a MVP up so we're able to run tests and investigate the remaining questions

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

Successfully merging this pull request may close these issues.

2 participants