+Y = require "../../yjs"
+Y.Test = require "../../y-test"
+
 class Characters
   constructor: (content) ->
     @_chars = []


  _name: "Characters"
  _setModel: (model) ->
    del @_chars
    @_model = model

  _getModel: (Y, Operation) ->
    if (@_model == null)
      model = new Operation.ListManager(@).execute()
      model.insert 0, @_chars
      _setModel model
    return @_model

  # Function that creates a character object


        state.push deltaSelection
        return position + delta.retain

if module?
  module.exports.Characters = Characters
  module.exports.Y = Y
