Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit 64fea271985a5339bc61dd8c227a9a66d35eb586 0 parents
@f-kubotar authored
1  .gitignore
@@ -0,0 +1 @@
+node_modules
9 .npmignore
@@ -0,0 +1,9 @@
+.git*
+docs/
+examples/
+support/
+test/
+testing.js
+.DS_Store
+coverage.html
+lib-cov
10 index.js
@@ -0,0 +1,10 @@
+var Sexpression = {
+ stringify: function(object) {
+ return '"' + object + '"';
+ },
+
+ parse: function(sexp) {
+ }
+}
+
+module.exports = Sexpression;
24 package.json
@@ -0,0 +1,24 @@
+{
+ "name": "sexpression",
+ "version": "0.0.0",
+ "description": "s-expression parser",
+ "main": "index.js",
+ "scripts": {
+ "test": "vows --spec --isolate"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:f-kubotar/sexpression.git"
+ },
+ "keywords": [
+ "s-expression",
+ "sexp",
+ "sexpression",
+ "emacs"
+ ],
+ "devDependencies": {
+ "vows": "*"
+ },
+ "author": "hadashiA",
+ "license": "BSD"
+}
13 test/sexpression.test.js
@@ -0,0 +1,13 @@
+var vows = require('vows')
+ , assert = require('assert')
+ , Sexpression = require('../');
+
+vows.describe("Sexpression.stringify").addBatch({
+ 'String': {
+ topic: Sexpression.stringify('hoge'),
+
+ 'to double quote string': function(str) {
+ assert.equal(str, '"hoge"');
+ }
+ }
+}).export(module);
Please sign in to comment.
Something went wrong with that request. Please try again.