Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37853

Re: Calling deprecated methods

X-Received by 10.200.4.33 with SMTP id v33mr11582675qtg.59.1513395120147; Fri, 15 Dec 2017 19:32:00 -0800 (PST)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m31no1924184qtf.0!news-out.google.com!t48ni605qtc.1!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx13.iad.POSTED!not-for-mail
Subject Re: Calling deprecated methods
Newsgroups comp.lang.java.programmer
References <644722387@f38.n261.z1.binkp.net> <280508399@f38.n261.z1.binkp.net>
From Richard Damon <Richard@Damon-Family.org>
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version 1.0
In-Reply-To <280508399@f38.n261.z1.binkp.net>
Lines 20
Message-ID <Ps0ZB.402$yr3.305@fx13.iad> (permalink)
X-Complaints-To abuse@easynews.com
Organization Forte - www.forteinc.com
X-Complaints-Info Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date Fri, 15 Dec 2017 22:31:59 -0500
X-Received-Bytes 1959
X-Received-Body-CRC 2500754706
Content-Type text/plain; charset=utf-8; format=flowed
Content-Language en-US
Content-Transfer-Encoding 7bit
X-Original-Bytes 1815
Xref csiph.com comp.lang.java.programmer:37853

Show key headers only | View raw


On 12/13/17 12:30 AM, Kiwi User (Kiwi User) wrote:
>> I know nothing of this sort of testing though I am curious to know how
>> you'd find the data that would generate errors when a method accepts a
>> number and handles 1, 1.5, and 2 just fine but 1.6 returns an incorrect
>> result.
>>
> Traditionally, you'd read the design specification. The one thing you MUST NOT
> do is to look at the code while you're writing tests. You're
> trying to test that it does what the requirements say it should and not what
> the coder wrote because he may have misunderstood the spec.

One major exception to this, is that the people who write the code 
should report to the testers any algorithmic breakpoints that are not 
implied by the specifications. For instance, the size of the data being 
processed my affect which method is used to reach the goal. The test 
suite needs to make sure it exercises every case. Testing likely would 
test the smallest and largest, but if there is distinct middle case, it 
might be missed, and tests near the break points might be called for too.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-12 16:31 +1200
  Re: Calling deprecated methods Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-12 10:24 +1200
    Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-12 20:05 +1200
      Re: Calling deprecated methods Eric Sosman <esosman@comcast-dot-net.invalid> (Eric Sosman) - 2017-12-12 15:41 +1200
        Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-12 21:04 +1200
          Re: Calling deprecated methods Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-12 13:33 +1200
            Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-12 22:41 +1200
              Re: Calling deprecated methods Eric Sosman <esosman@comcast-dot-net.invalid> (Eric Sosman) - 2017-12-12 17:57 +1200
                Re: Calling deprecated methods Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-13 04:51 +1200
                Re: Calling deprecated methods Eric Sosman <esosman@comcast-dot-net.invalid> (Eric Sosman) - 2017-12-13 08:21 +1200
                Re: Calling deprecated methods Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-13 05:40 +1200
                Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-13 15:19 +1200
                Re: Calling deprecated methods Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-13 07:57 +1200
                Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> (Kiwi User) - 2017-12-13 17:30 +1200
                Re: Calling deprecated methods Richard Damon <Richard@Damon-Family.org> - 2017-12-15 22:31 -0500
                Re: Calling deprecated methods Kiwi User <martin@mydomain.invalid> - 2017-12-16 09:08 +0000

csiph-web