Re: how to write tests in Leo?

2023-12-26 Thread Edward K. Ream
On Tue, Dec 26, 2023 at 9:09 PM HaveF HaveF wrote: > My main question is about 1, and 2.1 scenarios. How to perform specific operations in Leo, not how the code should be written. All Leonine test classes should be subclasses of LeoUnitTest. If your tests don't need c, g, or p, they can appear

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread Edward K. Ream
On Tue, Dec 26, 2023 at 6:14 PM Offray Vladimir Luna Cárdenas wrote: > Thanks for your "last" lesson You're welcome. > Regarding Rust. I have found Nim[1] a pretty good language. Thanks for the link. I am converting leoAst.py to Rust because the RustPython

Re: how to write tests in Leo?

2023-12-26 Thread Edward K. Ream
On Tue, Dec 26, 2023 at 8:44 PM HaveF HaveF wrote: My intuitive thought is that there are two types of tests in Leo, > > > 1. Testing of common Python function script nodes, > > > 2. Tests that require a Leo context, such as g, c, p, etc. > LeoPyRef.leo contains two direct children of the top-le

Re: how to write tests in Leo?

2023-12-26 Thread Thomas Passin
I don't have much understanding of Leo's tests myself. I think that your case 1 would be handled by opening a NullGui. This will give you a working g, from which you can access a lot of Leo's functionality. I'm not sure how to deal with getting a commander with a null gui. But there must be

Re: how to write tests in Leo?

2023-12-26 Thread HaveF HaveF
> > Take a look in the *leo-editor\leo\unittests* directory. For example, > *test_gui.py* imports g. etc. Maybe that will be enough to get started. > >> >> My intuitive thought is that there are two types of tests in Leo, >> >> >> 1. Testing of common Python function script nodes, >> >> >> 2. Tes

Re: how to write tests in Leo?

2023-12-26 Thread Thomas Passin
Take a look in the *leo-editor\leo\unittests* directory. For example, *test_gui.py* imports g. etc. Maybe that will be enough to get started. On Tuesday, December 26, 2023 at 9:44:46 PM UTC-5 iamap...@gmail.com wrote: > Hello, there, > > My intuitive thought is that there are two types of test

how to write tests in Leo?

2023-12-26 Thread HaveF HaveF
Hello, there, My intuitive thought is that there are two types of tests in Leo, 1. Testing of common Python function script nodes, 2. Tests that require a Leo context, such as g, c, p, etc. 2.1 Test with Leo already open, because there are already g, c, p 2.2 Testing without Leo open

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread Offray Vladimir Luna Cárdenas
Thanks for your "last" lesson, despite with you interactions after that post you keep teaching us in the community. Regarding Rust and the oxidation of everything (A.K.A. rewrite it in Rust) I have found Nim[1] a pretty good language with visible inspirations on Python (like its syntax) and wi

Re: (share a post)Working With Discovery Trees

2023-12-26 Thread Thomas Passin
It's a nice way to display and balance out key information. The organization is basically parents and children. I didn't see any examples where a node had more than one parent. That means the diagram could be stored in a standard Leo tree. As usual, the hard part is creating a layout of the

(share a post)Working With Discovery Trees

2023-12-26 Thread HaveF HaveF
https://www.industriallogic.com/blog/discovery-trees/ The node structure is like Leo(or any mindmap tools), but display in graph and vertical way. The nodes in the graph similar Leo's normal nodes or marked nodes. Interesting -- You received this message because you are subscribed to the Go

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread Edward K. Ream
On Tue, Dec 26, 2023 at 4:18 AM HaveF HaveF wrote: > why are you interested in Rust alone? I'm interested in Rust because: - It's important to the future of python. - Transliterating leoAst.py to Rust will make Leo's beautify commands about 100x faster. I'm interested in other languages and tec

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread HaveF HaveF
> > > Some people say that societal changes are happening too quickly, and > there's a need to rapidly acquire new skills. > However, some things are not that easy, which causes a lot of anxiety. > What is your perspective on this issue? > > > Maybe Edward can talk about how to evaluate Rust thing

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread Edward K. Ream
On Monday, December 25, 2023 at 8:39:57 PM UTC-6 iamap...@gmail.com wrote: Some people say that societal changes are happening too quickly, and there's a need to rapidly acquire new skills. However, some things are not that easy, which causes a lot of anxiety. What is your perspective on this is

Re: Issue #3710: EKR's last lecture

2023-12-26 Thread Edward K. Ream
On Monday, December 25, 2023 at 7:35:19 PM UTC-6 Ray Wang wrote: > Thank you, EKR. You're welcome :-) Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to le