[#11822] RCR: Input XML support in the base Ruby — Dave Thomas <Dave@...>

15 messages 2001/03/01

[#11960] Not Ruby, for me, for the moment at least — "Michael Kreuzer" <mkreuzer@... (nospam)>

I wrote on this newsgroup last weekend about how I was considering using

11 messages 2001/03/04

[#12023] French RUG ? — "Jerome" <jeromg@...>

Hi fellow rubyers,

16 messages 2001/03/05

[#12103] disassembling and reassembling a hash — raja@... (Raja S.)

Given a hash, h1, will the following always hold?

20 messages 2001/03/06

[#12204] FEATURE REQUEST: 'my' local variables — Leo Razoumov <see_signature@127.0.0.1>

Ruby is, indeed, a very well designed language.

64 messages 2001/03/07
[#12250] Re: FEATURE REQUEST: 'my' local variables — Leo Razoumov <see_signature@127.0.0.1> 2001/03/07

>>>>> "GK" == GOTO Kentaro <gotoken@math.sci.hokudai.ac.jp> writes:

[#12284] Re: FEATURE REQUEST: 'my' local variables — gotoken@... (GOTO Kentaro) 2001/03/08

In message "[ruby-talk:12250] Re: FEATURE REQUEST: 'my' local variables"

[#12289] Re: FEATURE REQUEST: 'my' local variables — matz@... (Yukihiro Matsumoto) 2001/03/08

Hi,

[#12452] Re: FEATURE REQUEST: 'my' local variables — gotoken@... (GOTO Kentaro) 2001/03/12

In message "[ruby-talk:12289] Re: FEATURE REQUEST: 'my' local variables"

[#12553] Re: FEATURE REQUEST: 'my' local variables — Dave Thomas <Dave@...> 2001/03/13

matz@zetabits.com (Yukihiro Matsumoto) writes:

[#12329] Math package — Mathieu Bouchard <matju@...>

18 messages 2001/03/09

[#12330] Haskell goodies, RCR and challenge — Robert Feldt <feldt@...>

Hi,

19 messages 2001/03/09
[#12374] Re: Haskell goodies, RCR and challenge — matz@... (Yukihiro Matsumoto) 2001/03/10

Hi,

[#12349] Can Ruby-GTK display Gif Png or Jpeg files? — Phlip <phlip_cpp@...>

Ruby-san:

20 messages 2001/03/09

[#12444] class variables — Max Ischenko <max@...>

14 messages 2001/03/12

[#12606] Order, chaos, and change requests :) — Dave Thomas <Dave@...>

17 messages 2001/03/14

[#12635] email address regexp — "David Fung" <dfung@...>

i would like to locate probable email addresses in a bunch of text files,

12 messages 2001/03/14

[#12646] police warns you -- Perl is dangerous!! — Leo Razoumov <see_signature@127.0.0.1>

I just read this story on Slashdot

14 messages 2001/03/14
[#12651] Re: police warns you -- Perl is dangerous!! — pete@... (Pete Kernan) 2001/03/14

On 14 Mar 2001 11:46:35 -0800, Leo Razoumov <see_signature@127.0.0.1> wrote:

[#12691] Re: police warns you -- Perl is dangerous!! — "W. Kent Starr" <elderburn@...> 2001/03/15

On Wednesday 14 March 2001 15:40, Pete Kernan wrote:

[#12709] [OFFTOPIC] Re: police warns you -- Perl is dangerous!! — Stephen White <spwhite@...> 2001/03/16

On Fri, 16 Mar 2001, W. Kent Starr wrote:

[#12655] Re: FEATURE REQUEST: 'my' local variables — "Benjamin J. Tilly" <ben_tilly@...>

>===== Original Message From Leo Razoumov <see_signature@127.0.0.1> =====

18 messages 2001/03/14

[#12706] Library packaging — "Nathaniel Talbott" <ntalbott@...>

I have a project that I'm working on that needs to live two different lives,

30 messages 2001/03/16

[#12840] Looking for a decent compression scheme — Dave Thomas <Dave@...>

14 messages 2001/03/19

[#12895] differences between range and array — "Doug Edmunds" <dae_alt3@...>

This code comes from the online code examples for

16 messages 2001/03/20
[#12896] Re: differences between range and array — "Hee-Sob Park" <phasis@...> 2001/03/20

[#12899] Re: differences between range and array — Jim Freeze <jim@...> 2001/03/20

On Tue, 20 Mar 2001, Hee-Sob Park wrote:

[#12960] TextBox ListBox — Ron Jeffries <ronjeffries@...>

Attached is a little Spike that Chet and I are doing. It is a

13 messages 2001/03/20

[#12991] [ANN] Lapidary 0.2.0 — "Nathaniel Talbott" <ntalbott@...>

Well, here's my first major contribution to the Ruby world: Lapidary. It's a

16 messages 2001/03/20

[#13028] mkmf question — Luigi Ballabio <luigi.ballabio@...>

15 messages 2001/03/21

[#13185] Reading a file backwards — "Daniel Berger" <djberg96@...>

Hi all,

21 messages 2001/03/25
[#13197] Re: Reading a file backwards — "Daniel Berger" <djberg96@...> 2001/03/25

> Hi Dan,

[#13203] Re: Reading a file backwards — Mathieu Bouchard <matju@...> 2001/03/25

On Sun, 25 Mar 2001, Daniel Berger wrote:

[#13210] Re: Reading a file backwards — "Daniel Berger" <djberg96@...> 2001/03/25

"Mathieu Bouchard" <matju@sympatico.ca> wrote in message

[#13374] Passing an array to `exec'? — Lloyd Zusman <ljz@...>

I'd like to do the following:

15 messages 2001/03/31

[#13397] Multidimensional arrays and hashes? — Lloyd Zusman <ljz@...>

Is it possible in ruby to make use of constructs that correspond to

14 messages 2001/03/31

[ruby-talk:13081] RE: Lapidary questions

From: "Nathaniel Talbott" <ntalbott@...>
Date: 2001-03-22 16:23:10 UTC
List: ruby-talk #13081
Paul Pladijs [mailto:ppladijs@cage.rug.ac.be] wrote:

> It's great to have a new testing framework, especially for Ruby. It's
> the first time I'm using such a framework (shame on me). I used to
> build my own testprograms but these days are probably over. Thanks
> for building this framework.

You're welcome! Hope it makes your life easier.


> I've got a few questions:
>
> * In the method assertInstanceOf(klass, object, message="") the first
>   parameter is klass and the second one is object. IMO it's more
>   natural to switch those two, according to the English sentence:
>   "that object is an instance of this klass".

Hmmm... I agree. It also puts it in agreement with assertKindOf(). I'll fix
it.


> * The code below produces the following output:
>
>
>   Loaded suite ExperimentWithLapidary
>   Started...
>   ...
>   Finished in 0.01 seconds.
>   1 runs, 2 assertions, 0 failures, 0 errors
>          ^^^
>
>   It says there are two assertions, but I only count one in
>   the code. Perhaps this might be a bug. Reason for this
>   is probably due to the fact that the method assertBlock is
>   called twice (and addSuccessfulAssertion is called twice).
>   [in the file Assertions.rb at the lines 36, 37 and 38]

<snip code>

Before acually asserting that the given value is true, assert() does a check
to make sure that it is not called with a block, which IIRC I did because I
kept mixing up assert() and assertBlock(). Calling

	assert(message) { block }

will run, but does not do what you want it to. So, there are indeed two
assertions being run; they just happen to be caused by your invoking the one
assertion.

This brings up a bigger issue with the whole assertion counting thing. I
don't believe you'll find it in any of the various xunits; our Java team
added it to junit largely as a novelty, and we enjoy watching the number go
up. I see it as a fun metric to watch, thus I added it to Lapidary, but I've
never viewed it as a hard benchmark, so it hasn't concerned me personally
that the count is only approximately equal to the actual number of
assertions in my code.

Now that I've said that, it does seem to violate POLS, so I'll look at
fixing it. My main concern is to keep Assertions as simple as possible, but
perhaps that won't be too hard.


> * The names of the directories and source files start with
>   a capital letter. According to all the other ruby packages,
>   I would suggest it might better to change that. I'm using
>   ruby on a Windows machine, so I have no problem with mixing
>   up small and capital letters but this might be a problem
>   on Linux or other platforms.

Hmmm... the various Unixes enforce capitalization (Readme and README and
readme are all different files), while Windows does not; this shouldn't
cause any problems as long as Windows users don't get lazy and specify
things in all lowercase. Is all lowercase a 'standard' for extension
directories, or does anyone care? I will definitely leave the file names as
they are (I like them to directly correspond to the class they contain), but
I could be persuaded to change the directory names. I'm not inclined to
right now, though.

Thanks for the feedback,


Nathaniel

<:((><
+ - -						+ - -
| RoleModel Software, Inc. &		| EQUIP VI
| The XP Software Studio(TM)		|

In This Thread