Search:

Type: Posts; User: kiiliikii

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    2,198

    Re: MultiSet - Enable assertions.

    I found the problem.
    I modified my Add and remove-methods. No problems with the equals-method :)
    It works - the output is: Success.

    Success!!!
    And thank you for your help! ;)
  2. Replies
    7
    Views
    2,198

    Re: MultiSet - Enable assertions.

    Do any of you see what the problem is?
  3. Replies
    7
    Views
    2,198

    Re: MultiSet - Enable assertions.

    Oh wait.
    It has to be VM arguments, ofcourse.

    Now; "Failed test 3!" xD
    So i guess there's a problem with my equals then :/
  4. Replies
    7
    Views
    2,198

    Re: MultiSet - Enable assertions.

    893

    Is that correct?
    I wrote "-ea" at Program arguments for my Test-class,
    and when I run the program I still get the same fail-output :/
  5. Replies
    7
    Views
    2,198

    MultiSet - Enable assertions.

    I have a class for my MultiSet<E>, and an associated test-program.

    My class is a follows:


    public class MultiSet<E> extends AbstractCollection<E>
    {
    private int size = 0;
    private Map<E,...
Results 1 to 5 of 5