Commit 0e5bde8e authored by Chris's avatar Chris

Adding no-cache headers to the QUnit test page.

parent d7a1c3d6
......@@ -4,14 +4,14 @@ A basic implementation of the `Set` data structure in Javascript. In case you do
> A set is an abstract data structure that can store certain values, without any particular order, and no repeated values.
The `BasicSet` in SetJS supports values of type `Numeric` or `String`.
The `BasicSet` in SetJS supports values of type `Number` or `String`.
### Syntax
```javascript
new BasicSet([initialData]);
```
`initialData` can be a value, several values, an array of values, or a mix of values and arrays of values. If no arguments are provided an empty `BasicSet` will be returned. For example, the following would return a `BasicSet` containing the values `{1,'2',2.5,'c','d',5}`.
`initialData` can be a value, several values, an array of values, or a mix of values and arrays of values. If no arguments are provided an empty `BasicSet` will be returned. For example, the following would return a `BasicSet` containing the values `{1,'2',2.5,'c','d',5.0}`.
```javascript
var set = new BasicSet(1,'2',[2.5,'c'],'d',5.0); // {1,'2',2.5,'c','d',5.0}
```
......@@ -34,7 +34,7 @@ var set = new BasicSet(1,'2',[2.5,'c'],'d',5.0); // {1,'2',2.5,'c','d',5.0}
<br>Returns a boolean asserting whether all of the elements in `args` are present in the `BasicSet` object. `args` can be a value, several values, an array of values, or a mix of values and arrays of values.
**BasicSet.prototype.getAll()**
<br>Returns an Array containing every element in the `BasicSet` object.
<br>Returns an `Array` containing every element in the `BasicSet` object.
**BasicSet.prototype.size()**
<br>Returns the number of elements in the `BasicSet` object.
......@@ -48,4 +48,7 @@ var set = new BasicSet(1,'2',[2.5,'c'],'d',5.0); // {1,'2',2.5,'c','d',5.0}
**BasicSet.prototype.toString()**
<br>Returns a String representation of the elements in the `BasicSet` object.
[1]: http://en.wikipedia.org/wiki/Set_(computer_science) "Set (abstract data type)"
[1]: http://en.wikipedia.org/wiki/Set_(computer_science) "Set (abstract data type)"
\ No newline at end of file
......@@ -2,6 +2,9 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<title>BasicSet Tests</title>
<link rel="stylesheet" href="//code.jquery.com/qunit/qunit-1.15.0.css">
</head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment