Author Topic: Doubleshot replacements Round FOUR: Test!  (Read 2977 times)

0 Members and 1 Guest are viewing this topic.

Offline 7bit

  • Thread Starter
  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
Doubleshot replacements Round FOUR: Test!
« on: Sun, 03 July 2011, 04:31:33 »
I need some test data for the next group buy.

Please send messages to 7bit_r4 in the following input fpormat:

ORDERID quatity
or
FGCOLOR/BGCOLOR/TEXTSTYLE/KIT

Please don't forget to add your e-mail address!

Color names:
WHITE
RED
GREEN
BLUE
YELLOW
ORANGE
BROWN
LIGHTBLUE
GREY
VDGREY
BLACK
CLEAR

Text styles:
A|ALL CAPS, centered
C|Camel Case, centered
L|Camel Case, top, left


Kit names:
FULL      |120|70|Full
STD       |109|60|Standard
NUM       | 21|15|Number Block keys
MOD       | 16|22|Modifier keys
ALP       | 28|15|A-Z keys
FUN       | 16|10|Function keys
PUN       | 20|12|Punctuation keys
CUR       | 10| 8|Cursor keys
MODIFIER  | 20|18|Modifier kit
ONEHALFMOD| 14|18|1 1/2 units Modifier kit
FUNCTION  | 69|30|Function kit
NUMERIC   | 63|28|Numeric kit
POS       | 60|30|POS kit
NOPOO     |0|0|Noppoo kit (whithout space)
CHERRY1800|0|0|Cherry 1800 kit (for old and new version; no space)
APPLE     |0|0|Apple specific keys
FULLADD   |0|0|Full Add-On (MODIFIER,...,APPLE)
JRET      |2|2|J-shape return plus 1.25 units shift
LRET      |2|2|L-shape return plus 1.25 units shift
SPACE     |1|1|6.25 units
SPACEOLD  |1|1|7 units
SPACEPOS  |1|1|7 units
SHIFT125  |1|1|ISO Shift key
CZ        |0|0|Czech language kit
DE        |0|0|German language kit
DK        |0|0|Danish language kit
ES        | 23|18|Spanish language kit
FI        |0|0|Finnish language kit
FR        | 29|18|French language kit
IT        |0|0|Italian language kit
SE        |0|0|Swedish language kit
SI        |0|0|Slovenian language kit
NO        |0|0|Norwegian language kit
UK        |  8| 7|UK language kit
DVORAK    | 22|18|Dvorakistanian language kit
COLEMAK   | 14|10|Colemakian language kit


This is the stuff you can order in the test, it will not everything be available in the real group buy; prices will be different as well.


Thanks!
« Last Edit: Sun, 03 July 2011, 04:33:45 by 7bit »
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline 7bit

  • Thread Starter
  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
Doubleshot replacements Round FOUR: Test!
« Reply #1 on: Sun, 03 July 2011, 15:10:01 »
Bloody perl!

# Can somone explain why

if()
{
   my $line=$_;
}

# is not the same as

while()
{
   my $line=$_;
   last;
}

# ?
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline keyboardlover

  • Posts: 4022
  • Hey Paul Walker, Click It or Ticket!
    • http://www.keyboardlover.com
Doubleshot replacements Round FOUR: Test!
« Reply #2 on: Sun, 03 July 2011, 15:11:44 »
Because an if statement is different from a while loop in any programming language?

Offline jayfinger

  • Posts: 32
Doubleshot replacements Round FOUR: Test!
« Reply #3 on: Sun, 03 July 2011, 18:52:35 »
\KL, you didn't fully read the second sample--you missed the "last".  The logic is seemingly the same.

7bit:  I don't think perl automatically assigns $_ for the if statement.  Thus it's value when evaluating "my $line = $_;" is whatever was in there previously, perhaps even nothing if it was never assigned.  Note, however, that the if statement did actually read and consume a line of input.  You just didn't assign it to anything thus it is gone.

If you do "if ($_ = ) ..." then it will do what you want.  But at that point you may as well just write "if (my $line = )...".

Offline jayfinger

  • Posts: 32
Doubleshot replacements Round FOUR: Test!
« Reply #4 on: Sun, 03 July 2011, 19:00:59 »
Quote from: 7bit;372340
I need some test data for the next group buy.

Please send messages to 7bit_r4 in the following input fpormat:

ORDERID quatity


I am confused.  Assuming your typo "quatity" was meant to be "quantity", I don't know how that is an ORDERID.  Or is ORDERID not a literal keyword, and instead and you want me to replace with FGCOLOR/BGCOLOR/TEXTSTYLE/KIT, which in turn is from the values you described above?  I can send such a sample.

And perhaps a n00b question, but how are NUM and NUMERIC different?  Or FUN and FUNCTION?

No crazy colors?  I think light blue text on violet caps would totally rock.  Or red on violet.  Anyhow, I'll PM a sample.

Offline litster

  • Posts: 2890
  • rare caps?! THAT'S A SMILIN
Doubleshot replacements Round FOUR: Test!
« Reply #5 on: Sun, 03 July 2011, 19:16:51 »
Do you want positve test cases or some nasty negative test cases that could break your script?  I can do both.

Offline jayfinger

  • Posts: 32
Doubleshot replacements Round FOUR: Test!
« Reply #6 on: Sun, 03 July 2011, 19:26:14 »
I'm assuming this really is test data.  No way I'm buying all this.

I ran your set of values through a tool call PICT, which you can read about at http://www.testingmentor.com/imtesty/2010/10/28/combinatorial-testing-selecting-the-right-values-part-2, or download a the Windows program from http://download.microsoft.com/download/f/5/5/f55484df-8494-48fa-8dbd-8c6f76cc014b/pict33.msi

In short, it generates all pairwise samples.  So each possible pair of fgcolor/bgcolor is present, each possible pair of fgcolor/textstyle, bgcolor/textstyle, and so on.  It results in a much smaller set of test data than enumerating all possible combinations, yet by still having all possible pairs of values it will do a good job of helping you catch any bugs that result from combinations of things.

I sent two samples, one with good data, one with bogus values as well.

Offline himynameisbunny

  • Posts: 154
Doubleshot replacements Round FOUR: Test!
« Reply #7 on: Sun, 03 July 2011, 19:41:26 »
As long as this Group Buy has clear keycaps I'm sweet.

Sending a PM through now.
[SIGPIC][/SIGPIC]
Happy Hacking Keyboard Pro 2 // Logitech M570 Trackball // Topre Realforce 23UB

Offline 7bit

  • Thread Starter
  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
Doubleshot replacements Round FOUR: Test!
« Reply #8 on: Mon, 04 July 2011, 15:11:01 »
Quote from: keyboardlover;372610
Because an if statement is different from a while loop in any programming language?

 
if it where C++ I would write something like,

if(read>>str) { .. }

and it would read one line of the file into str.

It is equivalent to:

read>>str;
if(read) { .. }

Well, never mind. Perl has also got its benefits.

Quote from: jayfinger;372725
\KL, you didn't fully read the second sample--you missed the "last".  The logic is seemingly the same.

7bit:  I don't think perl automatically assigns $_ for the if statement.  Thus it's value when evaluating "my $line = $_;" is whatever was in there previously, perhaps even nothing if it was never assigned.  Note, however, that the if statement did actually read and consume a line of input.  You just didn't assign it to anything thus it is gone.

If you do "if ($_ = ) ..." then it will do what you want.  But at that point you may as well just write "if (my $line = )...".

 
Thanks!

That explains it.

I've never properly learned Perl.

Just using it for its regular expression abilities. :-)
« Last Edit: Mon, 04 July 2011, 15:16:22 by 7bit »
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline 7bit

  • Thread Starter
  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
Doubleshot replacements Round FOUR: Test!
« Reply #9 on: Mon, 04 July 2011, 15:21:56 »
Quote from: jayfinger;372729
I am confused.  Assuming your typo "quatity" was meant to be "quantity", I don't know how that is an ORDERID.  Or is ORDERID not a literal keyword, and instead and you want me to replace with FGCOLOR/BGCOLOR/TEXTSTYLE/KIT, which in turn is from the values you described above?  I can send such a sample.

And perhaps a n00b question, but how are NUM and NUMERIC different?  Or FUN and FUNCTION?

No crazy colors?  I think light blue text on violet caps would totally rock.  Or red on violet.  Anyhow, I'll PM a sample.

 
NUM kit contains only the num-pad keys, whilke NUMERIC is (like in Round 3) full of extra ikeys like  1-90 for row 1, or buttens like /*-+\-= in the most weird locations.

FUN kit contains all regular function keys.

FUNCTION kit contains things like: RELOAD, STOP, RUN, KILL, AGAIN, ETC.

I will post a real Round 4 thread once iMav got finished with Round 3.
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline aggiejy

  • ** Moderator Emeritus
  • Posts: 1126
  • Location: ~Austin, Texas
Doubleshot replacements Round FOUR: Test!
« Reply #10 on: Mon, 04 July 2011, 19:04:46 »
You think it's possible to set up a wiki for 4 from the start so there's something to reference?  Or perhaps have your script put links in the names to some pictures/descriptions?  That would eliminate 46.5% of the questions. :)

Offline wanabe

  • Posts: 217
  • Location: San Francisco, CA USA
Doubleshot replacements Round FOUR: Test!
« Reply #11 on: Mon, 04 July 2011, 22:22:56 »
Quote from: aggiejy;373419
You think it's possible to set up a wiki for 4 from the start so there's something to reference?

yes seriously consider this...there were so many repeated questions from round 3 regarding the kits and how to order

Offline himynameisbunny

  • Posts: 154
Doubleshot replacements Round FOUR: Test!
« Reply #12 on: Tue, 05 July 2011, 20:11:40 »
We totally need to get arrow keys like this made up...

[SIGPIC][/SIGPIC]
Happy Hacking Keyboard Pro 2 // Logitech M570 Trackball // Topre Realforce 23UB