#!/usr/bin/ruby

#
## https://rosettacode.org/wiki/Symmetric_difference
#

var a = ["John", "Serena", "Bob", "Mary", "Serena"];
var b = ["Jim", "Mary", "John", "Jim", "Bob"];
var diff = (a ^ b -> unique.sort);

assert_eq(diff, ["Jim", "Serena"]);

say "** Test passed!";
