[Gambas-user] Test Module, First try
Brian G
brian at westwoodsvcs.com
Thu Jul 30 08:25:13 CEST 2020
You are correct, and I changed the test to only print the resulting comparison if it fails the test, so that if someone is interested in the reason it failed, it will be obvious. I have added the error.clear() when errors happen at your suggestion.
I also agree that a good way of implementing a new program is to develop the tests and meet the test standards with your coding.
In this case the test is being applied to existing code. I am doing my best to use test without doing a major rewrite of the the very good code implemented by Benoît Minisini and Fabien Bodard.
I am thinking to remove the test code as right now it would seem that perhaps it is not suitable to retrofit the tester into existing code. It has been very helpful in detecting some bugs in the code. and also extending my understanding of it. It would be nice to keep it but it appears that not all systems are equal, and the code is working including the test modules in all of the following systems, but not your system.
I have now tested the code with the test framework, on ubuntu 18,ubuntu 20, Debian bullseye, mint 19.3 & 20.0, suse 15.2, arch, all seem to work correctly, each was also configured for fr_FR UTF-8, de_DE UTF-8, it_IT UTF-8. en_US UTF-8, I also tested 8859-1. with the test module and it passes in every language and and character code type.
Except Arch, where I discovered and fixed why you were getting the first error, Arch makes you select and install each part of gambas separately LOL!
I also tested it on mint 19.2 32 bit, and raspi os 32 bit systems, and they both seem to work correctly as well!
I am concerned that it happens differently on your computer, would it be possible to have a logon to your computer to do some testing?
I have run scripter thru, a large number of scripts in each case on the systems mentioned, and it seems to be functioning correctly with the scripts I have written for system management and for a number of test scripts designed to exercise the scripter and using gambas3 3.15 code base.
Referring back to the test output with error you sent:
I am a little disappointed that I can not easily find the reason it is behaving differently for you during the test of component sorted order causing the second error.
I believe the first error that your getting is because the gambas-gb-inotify component is not installed on your system not because of language as was first thought.
The second one I am working on.
I will be adding some checks to ensure the components needed for testing are in fact installed on the system.
Cheers
Brian G
----- Original Message -----
From: "Brian" <brian at westwoodsvcs.com>
To: "Gambas mailing list" <user at lists.gambas-basic.org>
Sent: Tuesday, July 28, 2020 3:25:40 PM
Subject: Re: [Gambas-user] Test Module, First try
This only works if the number of entries in the table are equal, in most error cases they are not, that means this does not work, as it errors out when the two tables don't have the same count!
I am trying to print the whole content in every case!
I have added the error.clear()
Thank You
Brian G
----- Original Message -----
From: "Christof Thalhofer" <chrisml at deganius.de>
To: "Gambas mailing list" <user at lists.gambas-basic.org>
Sent: Tuesday, July 28, 2020 2:57:25 PM
Subject: Re: [Gambas-user] Test Module, First try
Am 26.07.20 um 22:17 schrieb Brian G:
> How does that trick work, it is not very intuitive to understand
> bResult = sA[i] = sB[i]
sA[i] = sB[i], the result is True or False
bResult = the result of sA[i] = sB[i]
Ok?
I find it intuitive and I like it.
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
----[ http://gambaswiki.org/wiki/doc/netiquette ]----
----[ http://gambaswiki.org/wiki/doc/netiquette ]----
More information about the User
mailing list